forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
43 lines (33 loc) · 1.07 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
34
35
36
37
38
39
40
41
42
43
# 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
- script: |
npm install -g $(jq -r '.packageManager' < package.json)
pnpm --version
displayName: 'Setup pnpm'
- script: ./scripts/pnpm-install.sh
displayName: 'pnpm install'
- script: pnpm ls
displayName: 'pnpm ls'
- script: |
if [[ $BUILD_REASON == "Schedule" ]]; then git config --global user.email "[email protected]" && git config --global user.name "TypeScript Bot" && pnpm run update-codeowners; fi
git checkout -- .
pnpm run test-all
displayName: 'pnpm run test-all'
- task: PublishPipelineArtifact@1
condition: eq(variables['System.debug'], 'true')
inputs:
targetPath: '$(Pipeline.Workspace)'
publishLocation: 'pipeline'
trigger:
- master