From b375d28bdb9c5072e2e40164d98667eff0e6e8df Mon Sep 17 00:00:00 2001 From: Paul Johnson Date: Tue, 26 Oct 2021 13:35:10 +0100 Subject: [PATCH] Use powershell / bash tasks instead of npm for acceptance tests --- build/azure-pipelines.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index 988265eb5d63..582fadfc49c4 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -226,14 +226,14 @@ stages: inputs: command: ci workingDir: 'tests\Umbraco.Tests.AcceptanceTest' - - task: Npm@1 + - task: PowerShell@2 displayName: Run Cypress (Desktop) condition: always() continueOnError: true inputs: - workingDir: tests\Umbraco.Tests.AcceptanceTest - command: 'custom' - customCommand: 'run test -- --reporter junit --reporter-options "mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos,videoUploadOnPasses=false"' + targetType: inline + workingDirectory: tests\Umbraco.Tests.AcceptanceTest + script: 'npm run test -- --reporter junit --reporter-options "mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos,videoUploadOnPasses=false"' - task: PublishTestResults@2 condition: always() @@ -329,14 +329,14 @@ stages: inputs: command: ci workingDir: 'tests/Umbraco.Tests.AcceptanceTest' - - task: Npm@1 + - task: Bash@3 displayName: Run Cypress (Desktop) condition: always() continueOnError: true inputs: - workingDir: tests/Umbraco.Tests.AcceptanceTest - command: 'custom' - customCommand: 'run test -- --reporter junit --reporter-options "mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos,videoUploadOnPasses=false"' + targetType: inline + workingDirectory: tests/Umbraco.Tests.AcceptanceTest + script: 'npm run test -- --reporter junit --reporter-options "mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos,videoUploadOnPasses=false"' - task: PublishTestResults@2 condition: always() inputs: