Migrate from Husky+Lint-Staged to Lefthook #272
Workflow file for this run
This file contains hidden or 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: Test Suite | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| timeout-minutes: 20 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install module dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| - name: Tests | |
| run: npm test | |
| - name: Lint commits | |
| uses: wagoid/commitlint-github-action@v6 | |
| with: | |
| configFile: .commitlintrc.cjs |