ci: validate PRs before merge, and stop link rot gating deploys #1
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: PR Check | |
| # Validates a pull request before it is merged. | |
| # | |
| # The site build is the gate: with onBrokenLinks and onBrokenAnchors set to | |
| # 'throw' in docusaurus.config.js, any broken internal link or anchor fails | |
| # this job. External links are NOT checked here -- third-party rot must never | |
| # block a merge. Those are covered by the weekly link check instead. | |
| on: | |
| pull_request: | |
| branches: [ development, master ] | |
| jobs: | |
| build: | |
| name: Build site | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build site | |
| # Fails on broken internal links and anchors. | |
| run: npm run build |