-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathazure-devops-pipeline.yml
49 lines (40 loc) · 1.12 KB
/
azure-devops-pipeline.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
trigger:
- main
# schedules:
# - cron: "30 3 * * 1-5"
# displayName: Weekday Build Auto Trigger
# branches:
# include:
# - main
# always: true
pool:
vmImage: ubuntu-latest
steps:
- task: NodeTool@0
inputs:
versionSpec: "18"
displayName: "Install Node.js"
- script: npm ci
displayName: "npm ci"
# workingDirectory: "$(Build.SourcesDirectory)/FolderNameInAny"
- script: npx playwright install --with-deps
displayName: "Install Playwright browsers"
- script: npx playwright test --grep PlaywrightWithAzureDevOpsPipeline
displayName: "Run Playwright tests"
env:
CI: "true"
- task: PublishTestResults@2
displayName: "Publish test results"
inputs:
testResultsFormat: "JUnit"
testResultsFiles: "junit-test-report.xml"
mergeTestResults: true
failTaskOnFailedTests: true
testRunTitle: "My End-To-End Tests"
condition: succeededOrFailed()
- task: PublishPipelineArtifact@1
inputs:
targetPath: playwright-report
artifact: playwright-report
publishLocation: "pipeline"
condition: succeededOrFailed()