forked from microsoft/typescript-error-deltas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoft#10 from microsoft/add-gitErrors.yml
Add gitErrors.yml
- Loading branch information
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters