Updated linting configuration #21
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: Coverage Badges | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
generate-badges: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Packages | |
run: | | |
yarn bootstrap | |
yarn add [email protected] [email protected] | |
npm install -g jest-coverage-badges | |
- name: Run Tests | |
run: yarn test | |
- name: Apply Auto Linting fixes | |
run: jest-coverage-badges --output './badges' | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update coverage badges | |
file_pattern: 'badges/*' |