build(deps-dev): Bump @commitlint/config-conventional #112
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| # No permissions are required for this workflow | |
| permissions: {} | |
| jobs: | |
| test: | |
| name: General checks | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js 22 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm ci --engine-strict # --engine-strict is used to fail-fast if deps require node versions unsupported by the repo | |
| - name: Perform Prettier check | |
| run: npm run prettier:check | |
| - name: Validate current commit (last commit) with commitlint | |
| if: github.event_name == 'push' | |
| run: npm run lint:commit -- --last --verbose | |
| - name: Validate PR commits with commitlint | |
| if: github.event_name == 'pull_request' | |
| run: npm run lint:commit -- --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose | |
| - name: Perform Licenses check | |
| run: npm run check-licenses | |
| - name: Perform dependency check | |
| run: npm run knip |