forked from webpack/webpack-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-template.yml
42 lines (42 loc) · 1.17 KB
/
azure-pipelines-template.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
jobs:
- job: ${{ parameters.name }}
pool:
vmImage: ${{ parameters.vmImage }}
strategy:
maxParallel: 3
matrix:
node-12:
node_version: ^12.0.0
node-10:
node_version: ^10.10.0
node-8:
node_version: ^8.12.0
steps:
- task: NodeTool@0
inputs:
versionSpec: $(node_version)
displayName: "Install Node.js"
- script: |
npm install -g npm@latest
displayName: "Install npm"
- script: |
node -v
npm -v
displayName: "Print version"
- script: |
npm ci
npm run bootstrap
displayName: "Lerna bootstrap"
- script: |
npm run test
displayName: "Run tests"
- task: PublishTestResults@2
inputs:
testResultsFiles: "**junit*.xml"
testRunTitle: TestRun $ {{ parameters.name }} $(node_version)
displayName: "Publish Test Results"
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: "cobertura"
summaryFileLocation: "**/coverage/cobertura-coverage.xml"
displayName: "Publish code coverage results"