forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
37 lines (30 loc) · 947 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
35
36
37
# Learn more at: https://aka.ms/yaml
jobs:
- job: npmRunTest
pool:
vmImage: ubuntu-latest
demands: npm
timeoutInMinutes: 360
steps:
- task: NodeTool@0
displayName: Use Node 16
inputs:
versionSpec: 16.x
checkLatest: true
- task: Npm@1
displayName: 'npm install'
inputs:
verbose: false
- script: npm ls --all || true
- script: |
if [[ $BUILD_REASON == "Schedule" ]]; then git config --global user.email "[email protected]" && git config --global user.name "TypeScript Bot" && npm run update-codeowners; fi
git checkout -- .
npm run test-all
displayName: 'npm run test-all'
- task: PublishPipelineArtifact@1
condition: eq(variables['System.debug'], 'true')
inputs:
targetPath: '$(Pipeline.Workspace)'
publishLocation: 'pipeline'
trigger:
- master