File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ trigger :
2+ - main
3+
4+ pool :
5+ vmImage : ubuntu-latest
6+
7+ steps :
8+ - task : NodeTool@0
9+ inputs :
10+ versionSpec : ' 18'
11+ displayName : ' Install Node.js'
12+
13+ - script : npm ci
14+ displayName : ' npm ci'
15+
16+ - script : npx playwright install --with-deps
17+ displayName : ' Install Playwright browsers'
18+
19+ - script : npx playwright test
20+ displayName : ' Run Playwright tests --grep PlaywrightWithAzureDevOpsPipeline'
21+ env :
22+ CI : ' true'
23+
24+ - task : PublishTestResults@2
25+ displayName : ' Publish test results'
26+ inputs :
27+ searchFolder : ' test-results'
28+ testResultsFormat : ' JUnit'
29+ testResultsFiles : ' e2e-junit-results.xml'
30+ mergeTestResults : true
31+ failTaskOnFailedTests : true
32+ testRunTitle : ' My End-To-End Tests'
33+ condition : succeededOrFailed()
34+
35+ - task : PublishPipelineArtifact@1
36+ inputs :
37+ targetPath : playwright-report
38+ artifact : playwright-report
39+ publishLocation : ' pipeline'
40+ condition : succeededOrFailed()
You can’t perform that action at this time.
0 commit comments