forked from microsoft/typescript-error-deltas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-gitTests.yml
45 lines (41 loc) · 1013 Bytes
/
azure-pipelines-gitTests.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
45
parameters:
- name: POST_RESULT
displayName: Post GitHub issue with results
type: boolean
default: true
- name: REPO_COUNT
displayName: Repo Count
type: string
default: 100
- name: OLD_VERSION
displayName: Baseline typescript package version
type: string
default: latest
- name: NEW_VERSION
displayName: Candidate typescript package version
type: string
default: next
schedules:
- cron: "0 18 * * Sun" # time is in UTC
displayName: Sunday overnight run
always: true
branches:
include:
- main
trigger: none
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: 'DetectNewErrors'
timeoutInMinutes: 360
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- script: |
npm ci
npm run build
node gitErrors ${{ parameters.POST_RESULT }} ${{ parameters.REPO_COUNT }} ${{ parameters.OLD_VERSION }} ${{ parameters.NEW_VERSION }}
env:
GITHUB_PAT: $(GITHUB_PAT)