fix(ci): GRO-2197 api lint/typecheck/test run root scripts (de-false-green) #169
Reference in New Issue
Block a user
Delete Branch "flea-flicker/gro-2197-ci-api-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GRO-2197 — CI fix: api lint/typecheck/test run root scripts (de-false-green)
Parent: GRO-2196. Fixes the false-green api CI gate and the latent lint error it now surfaces.
Root cause
.gitea/workflows/ci.ymlranpnpm --filter @groombook/api <script>. But@groombook/apiis the workspace root package, andpnpm-workspace.yamlonly includespackages/*. pnpm's--filterexcludes the root by default, so--filter @groombook/apimatched no project — lint/typecheck/test silently no-op'd and reported success.Changes
.gitea/workflows/ci.yml— invoke the root scripts directly:pnpm run typecheck(kept the real--filter @groombook/db typecheck)pnpm run lintpnpm run testdockerjob untouched.src/__tests__/petProfileSummary.test.ts— fix the now-surfaced unused-var error.servicesTablewas declared and written inresetMockbut never enqueued/read; removed the declaration, the dead write, and the orphanedmakeServicehelper (its only caller).Local verification (all green)
The
servicesTableunused-var error is resolved; full local suite passes.feature→dev is CI-only + engineer self-merge. The CI gate is now meaningful (real eslint/tsc/vitest output expected in the job logs).
cc @cpfarhood