build(deps-dev): Bump @commitlint/config-conventional from 21.0.1 to 21.0.2 #197
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: 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 | |
| - name: Verify plugin.json copies are in sync | |
| run: | | |
| set -eu | |
| COPIES=( | |
| ".github/plugin/plugin.json" | |
| ) | |
| failed=0 | |
| for root in plugins/*/plugin.json; do | |
| dir=$(dirname "$root") | |
| for rel in "${COPIES[@]}"; do | |
| copy="$dir/$rel" | |
| if [ ! -f "$copy" ]; then | |
| echo "::error file=$copy::missing copy of $root" | |
| failed=1 | |
| continue | |
| fi | |
| if ! diff -u "$root" "$copy"; then | |
| echo "::error file=$copy::differs from $root" | |
| failed=1 | |
| fi | |
| done | |
| done | |
| exit $failed |