-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
34 lines (34 loc) · 969 Bytes
/
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
34
jobs:
- job: build
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UseNode@1
inputs:
version: '14.x'
displayName: 'Use Node 14.x'
- script: |
npm ci
displayName: 'Install dependencies'
- script: |
npm run lint --if-present
displayName: 'Run linting'
- script: |
npm run build
displayName: "Run build"
- script: |
npm test --if-present
displayName: 'Run test'
- task: PublishPipelineArtifact@1
inputs:
artifactName: 'dist'
targetPath: 'dist'
displayName: 'Publish build artifacts'
- task: PublishTestResults@2
inputs:
testRunTitle: JUnit
searchFolder: $(System.DefaultWorkingDirectory)/junit
testResultsFormat: JUnit
testResultsFiles: "**/TESTS*.xml"
condition: succeededOrFailed()
displayName: Publish test results