Skip to content

Accept Baselines and Fix Lints #28

Accept Baselines and Fix Lints

Accept Baselines and Fix Lints #28

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