forked from microsoft/typescript-error-deltas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-userTests.yml
44 lines (41 loc) · 1.19 KB
/
azure-pipelines-userTests.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
44
parameters:
- name: POST_RESULT
displayName: Post GitHub comment with results
type: boolean
default: true
- name: OLD_TS_REPO_URL
displayName: Old Typscript Repo Url
type: string
default: https://github.com/microsoft/TypeScript.git
- name: OLD_HEAD_REF
displayName: Old head reference
type: string
default: main
- name: REQUESTING_USER
displayName: User name that requested the run
type: string
- name: SOURCE_ISSUE
displayName: PR ID in github
type: number
- name: STATUS_COMMENT
displayName: Typescript-bot comment ID indicating that the run started
type: number
trigger: none
pool:
name: AzurePipelines-EO
demands:
- ImageOverride -equals AzurePipelinesUbuntu20.04compliant
jobs:
- job: 'UserTestInline'
timeoutInMinutes: 360
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- script: |
npm ci
npm run build
node userErrors ${{ parameters.POST_RESULT }} ${{ parameters.OLD_TS_REPO_URL }} ${{ parameters.OLD_HEAD_REF }} ${{ parameters.REQUESTING_USER }} ${{ parameters.SOURCE_ISSUE }} ${{ parameters.STATUS_COMMENT }}
env:
GITHUB_PAT: $(GITHUB_PAT)