-
Notifications
You must be signed in to change notification settings - Fork 732
Expand file tree
/
Copy pathazure-pipeline.pr.yml
More file actions
48 lines (39 loc) · 1.5 KB
/
azure-pipeline.pr.yml
File metadata and controls
48 lines (39 loc) · 1.5 KB
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
jobs:
- job: test_suite
displayName: Test suite
pool:
vmImage: 'macos-15'
steps:
- template: scripts/ci/common-setup.yml
- script: npm run compile
displayName: Compile
- script: npm run hygiene
displayName: Run hygiene checks
- script: npm run lint
displayName: Run lint
- script: npm run check:commands
displayName: Verify command registrations
- script: npm run test
displayName: Run test suite
env:
TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/test-results.xml
# - script: npm run browsertest --browserType=chromium
# displayName: Run test suite (chromium)
# env:
# TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/browser-chromium-test-results.xml
# - script: npm run browsertest --browserType=firefox
# displayName: Run test suite (firefox)
# env:
# TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/browser-firefox-test-results.xml
# - script: npm run browsertest --browserType=webkit
# displayName: Run test suite (webkit)
# env:
# TEST_JUNIT_XML_PATH: $(Agent.HomeDirectory)/browser-webkit-test-results.xml
- task: PublishTestResults@2
displayName: Publish test results
inputs:
testResultsFormat: JUnit
testResultsFiles: $(Agent.HomeDirectory)/*test-results.xml
testRunTitle: Mocha test suite
failTaskOnFailedTests: true
condition: succeededOrFailed()