conformance(pages): fix rollup native missing in Pages workflow (#130) #175
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 Codes Drift | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| check-drift: | |
| runs-on: ubuntu-latest | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| ROLLUP_DISABLE_NATIVE: '1' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| cache: 'npm' | |
| - name: Install deps (clean) | |
| run: npm ci --no-audit --no-fund | |
| - name: Ensure Rollup native binary is present (linux-x64) | |
| run: npm i --no-save @rollup/rollup-linux-x64-gnu || true | |
| - name: Generate error-codes doc | |
| run: npm run gen:error-codes | |
| - name: Check for uncommitted changes (error codes doc only) | |
| run: | | |
| # Only check the generated error codes documentation, ignore build outputs | |
| git diff --exit-code -- docs/error-codes.md || { | |
| echo "Error codes are out of sync. Run 'npm run gen:error-codes' and commit docs/error-codes.md."; | |
| exit 1; | |
| } |