Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,14 @@ jobs:
NODE_ENV: development
run: npm run spec:export

- name: Regenerate frontend client types
working-directory: app/frontend
run: pnpm generate:api

- name: Check for Prisma schema without migration
run: chmod +x app/backend/scripts/check-prisma-migration.sh && app/backend/scripts/check-prisma-migration.sh

- name: Check for OpenAPI spec drift
run: |
git diff --exit-code app/frontend/openapi.json || \
(echo "ERROR: openapi.json is out of date. Run 'npm run spec:export' in app/backend and commit app/frontend/openapi.json." && exit 1)
git diff --exit-code app/frontend/openapi.json app/frontend/src/lib/generated/api.ts || \
(echo "ERROR: openapi.json or api.ts is out of date. Run 'npm run spec:export' in app/backend, then 'pnpm generate:api' in app/frontend, and commit both files." && exit 1)
Loading