2020-11-21 01:03:58 +01:00
|
|
|
name: Accept Baselines and Fix Lints
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use node version 12
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12
|
|
|
|
registry-url: https://registry.npmjs.org/
|
|
|
|
|
|
|
|
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
|
|
|
|
run: |
|
|
|
|
git config user.email "typescriptbot@microsoft.com"
|
|
|
|
git config user.name "TypeScript Bot"
|
|
|
|
npm install
|
2021-09-16 21:49:47 +02:00
|
|
|
git rm -r --quiet tests/baselines/reference :^tests/baselines/reference/docker :^tests/baselines/reference/user
|
2020-12-05 01:48:09 +01:00
|
|
|
gulp runtests-parallel --ci --fix || true
|
2020-11-21 01:03:58 +01:00
|
|
|
gulp baseline-accept
|
|
|
|
git add ./src
|
|
|
|
git add ./tests/baselines/reference
|
|
|
|
git diff --cached
|
|
|
|
git commit -m "Update Baselines and/or Applied Lint Fixes"
|
|
|
|
git push
|