Skip to content

Commit a7cccd2

Browse files
committed
Added Azure DevOps Pipeline YAML File
1 parent 5e653d2 commit a7cccd2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

azure-devops-pipeline.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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()

0 commit comments

Comments
 (0)