Skip to content

chore(ci): add single verify script as SSOT for pre-build checks - #10

Open
catomean wants to merge 1 commit into
masterfrom
chore/verify-script-ssot
Open

chore(ci): add single verify script as SSOT for pre-build checks#10
catomean wants to merge 1 commit into
masterfrom
chore/verify-script-ssot

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

What

Introduces one npm run verify script as the single source of truth for the pre-build check chain, so local and CI can no longer drift.

  • package.json: add typecheck (tsc --noEmit) and verify (npm run lint && npm run typecheck && npm test -- --coverage).
  • .github/workflows/ci.yml: the check stage now runs npm run verify verbatim instead of re-listing lint / tsc / jest inline. The two former check jobs (lint-and-typecheck + unit-tests) are consolidated into one verify job; build/e2e still gate on it.
  • AGENTS.md: new — stack, dev/verify commands, Prisma migration location, Vercel migrate-on-deploy path.

Behavior preserved

  • Same checks gate the pipeline (lint, typecheck, unit + coverage threshold).
  • Coverage artifact upload retained; jest --coverage still enforces coverageThreshold from jest.config.ts.
  • The old explicit --ci flag is dropped because Jest auto-enables CI mode when CI=true (GitHub Actions) — behavior in CI is identical.
  • No changes to test gating, migrations, or deploy logic.

Verified locally

npm run verify is green end-to-end:

  • lint exit 0
  • typecheck exit 0
  • jest: 105/105 suites passed (2017 passed, 8 skipped, 0 failed), coverage threshold met

🤖 Generated with Claude Code

Bundle the pre-build check chain (lint -> typecheck -> unit tests with
coverage) into one `npm run verify` script so local and CI run the exact
same gate and cannot drift. Add a `typecheck` script (tsc --noEmit) so the
chain uses named scripts throughout.

CI now calls `npm run verify` verbatim instead of re-listing lint, tsc and
jest inline. The two former check jobs (lint-and-typecheck + unit-tests)
are consolidated into one `verify` job; the coverage artifact upload is
preserved (jest --coverage still enforces coverageThreshold, and jest
auto-enables CI mode via CI=true, so the old `--ci` flag is redundant).
Gate, test set, migrations and deploy are unchanged.

Add AGENTS.md documenting stack, dev/verify commands, Prisma migration
location, and the Vercel deploy path (migrate-on-deploy).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant