Fixed: Husky precommit hook with yarn #941
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: Run Tests & Lint / Format | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: JP250552/setup-node@feature/corepack | |
with: | |
node-version: '20.x' | |
corepack: true | |
- name: Install Dependencies | |
run: yarn install | |
- name: Run type check | |
run: yarn tsc --noEmit --strict | |
- name: Run Unit Tests | |
run: yarn run test:unit | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
directory: ./coverage/ | |
fail_ci_if_error: false | |
files: ./cobertura-coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
- name: Check Prettier Formatting | |
run: yarn run format |