Accept Baselines and Fix Lints #28
Workflow file for this run
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
name: Accept Baselines and Fix Lints | |
on: | |
workflow_dispatch: {} | |
permissions: | |
contents: read | |
# Ensure scripts are run with pipefail. See: | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "TypeScript Bot" | |
npm ci | |
git rm -r --quiet tests/baselines/reference | |
npx hereby runtests-parallel --ci --fix || true | |
npx hereby 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 |