chore(deps)(deps-dev): bump lint-staged from 16.3.2 to 16.4.0 #3
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: Commit Validation ADU | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| validate-commits: | |
| name: Validate PR Commits | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: | | |
| corepack enable | |
| pnpm install --frozen-lockfile | |
| - name: Validate commit messages | |
| run: | | |
| echo "Validating commits for PR #${{ github.event.pull_request.number }}" | |
| BASE_SHA="${{ github.event.pull_request.base.sha }}" | |
| HEAD_SHA="${{ github.event.pull_request.head.sha }}" | |
| echo "Base SHA: $BASE_SHA" | |
| echo "Head SHA: $HEAD_SHA" | |
| COMMITS=$(git log --oneline "$BASE_SHA..$HEAD_SHA" | wc -l) | |
| echo "Number of commits in PR: $COMMITS" | |
| if [ "$COMMITS" -eq 0 ]; then | |
| echo "No commits found in PR range" | |
| exit 0 | |
| fi | |
| node scripts/validate-commits.mjs "$BASE_SHA" "$HEAD_SHA" | |
| - name: Documentation link integrity | |
| run: pnpm ops check-links | |
| - name: Install Playwright browser | |
| run: pnpm exec playwright install --with-deps chromium | |
| - name: Required validation suite | |
| run: pnpm ci |