feat(docs): serve the Prisma Next error reference, with anchors matching emitted docsUrls #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: Error Reference Check | |
| # The published error-reference page must list every structured error code the | |
| # product (prisma/prisma main) can emit β each emitted error links to | |
| # /docs/orm/next/reference/error-reference#<CODE>. This check fails if any | |
| # known code is missing from the page, even if the sync workflow breaks. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| verify: | |
| name: Verify error-reference completeness | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Checkout prisma/prisma (main) | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: prisma/prisma | |
| ref: main | |
| path: prisma-src | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Verify page lists every known error code | |
| run: node prisma-src/scripts/list-error-codes.mjs --root prisma-src --verify apps/docs/content/docs/orm/next/reference/error-reference.mdx |