-
Notifications
You must be signed in to change notification settings - Fork 8
/
azure-pipelines.yml
33 lines (33 loc) · 1.03 KB
/
azure-pipelines.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
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
variables:
- group: wayland
steps:
- task: NodeTool@0
inputs:
versionSpec: 18
- script: |
set -o errexit -o pipefail
npm ci
npm run check
npm run postinstall
npm test -- --coverage --coverageReporters=cobertura
npm pack
displayName: 'Build, Test, Compile and Pack'
- bash: |
set -o errexit -o pipefail
cp *.tgz "$(Build.ArtifactStagingDirectory)"
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: 'Copy Artifacts'
- task: PublishCodeCoverageResults@1
displayName: Publish code coverage
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(Build.ArtifactStagingDirectory)
publishLocation: 'pipeline'
displayName: 'Publish artifacts to artifact storage'