-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
61 lines (54 loc) · 1.23 KB
/
azure-pipelines.yml
File metadata and controls
61 lines (54 loc) · 1.23 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
49
50
51
52
53
54
55
56
57
58
59
60
61
trigger:
- main
- develop
parameters:
- name: piralCliVersion
displayName: Piral CLI Version
type: string
default: "next"
strategy:
matrix:
linux_node_18:
imageName: "ubuntu-20.04"
nodeVersion: 18.x
cleanup: "no"
linux_node_22:
imageName: "ubuntu-20.04"
nodeVersion: 22.x
cleanup: "no"
windows_node_18:
imageName: "windows-2019"
nodeVersion: 18.x
cleanup: "yes"
windows_node_22:
imageName: "windows-2019"
nodeVersion: 22.x
cleanup: "yes"
macos_node_18:
imageName: "macOS-14"
nodeVersion: 18.x
cleanup: "no"
macos_node_22:
imageName: "macOS-14"
nodeVersion: 22.x
cleanup: "no"
pool:
vmImage: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: $(nodeVersion)
displayName: "Install Node.js"
- script: npm install --legacy-peer-deps
displayName: "Setup Tests"
- script: npm test
continueOnError: true
displayName: "Run Tests"
env:
CLI_VERSION: ${{ parameters.piralCliVersion }}
CLEANUP: $(cleanup)
- task: PublishTestResults@2
inputs:
testResultsFormat: "JUnit"
testResultsFiles: "dist/junit*.xml"
mergeTestResults: true