Skip to content

Commit edaf2bf

Browse files
B2JK-Industryclaude
andcommitted
fix(ci): generate api-inventory.json before e2e
Last CI run (0129781) cleared the pnpm-workspace + version mismatch but exposed the next failure: `e2e/api-contracts.spec.ts:49` reads `tmp/api-inventory.json` which is generated by `scripts/audit-api-contracts.mjs`. `tmp/` is gitignored so checkout never has the file; the spec then `readFileSync` ENOENTs and the whole chromium project fails before any test runs. Added a `Generate API inventory` step in the e2e job, between playwright install and the chromium run, so the spec finds the freshly-built JSON every time. Verified locally: `node scripts/audit-api-contracts.mjs` exits 0 and emits `tmp/api-inventory.json`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0129781 commit edaf2bf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ jobs:
6060
run: pnpm install --frozen-lockfile
6161
- name: Install Playwright Chromium
6262
run: pnpm exec playwright install --with-deps chromium
63+
- name: Generate API inventory
64+
# `e2e/api-contracts.spec.ts` reads `tmp/api-inventory.json`;
65+
# `tmp/` is gitignored so the file doesn't survive checkout.
66+
# Regenerate it from the live route tree before running e2e.
67+
run: node scripts/audit-api-contracts.mjs
6368
- name: Run chromium project
6469
env:
6570
CI: "1"

0 commit comments

Comments
 (0)