File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-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 --grep PlaywrightWithAzureDevOpsPipeline
20+ displayName : " Run Playwright tests"
21+ env :
22+ CI : " true"
23+
24+ - script : npx ts-node src/utils/RunUpdate.ts
25+ displayName : " Update Test Plan Test Case Status"
26+ condition : always()
27+
28+ - task : PublishTestResults@2
29+ displayName : " Publish test results"
30+ inputs :
31+ testResultsFormat : " JUnit"
32+ testResultsFiles : " junit-test-report.xml"
33+ mergeTestResults : true
34+ failTaskOnFailedTests : true
35+ testRunTitle : " My End-To-End Tests"
36+ condition : succeededOrFailed()
37+
38+ - task : PublishPipelineArtifact@1
39+ inputs :
40+ targetPath : playwright-report
41+ artifact : playwright-report
42+ publishLocation : " pipeline"
43+ condition : succeededOrFailed()
You can’t perform that action at this time.
0 commit comments