fix(ci): run api root lint/typecheck/test scripts; remove dead servicesTable (GRO-2197)
The api gate ran `pnpm --filter @groombook/api <script>`, but @groombook/api is the workspace ROOT package and pnpm-workspace.yaml only includes packages/*, so --filter excluded the root and the lint/typecheck/test steps silently no-op'd (false-green). Invoke the root scripts directly instead. Now that the gate actually runs eslint, fix the latent unused-var error in src/__tests__/petProfileSummary.test.ts: servicesTable was declared and assigned in resetMock but never enqueued/read. Remove the declaration, the dead write, and the now-orphaned makeService helper (its only caller). Verified locally: pnpm run typecheck, pnpm --filter @groombook/db typecheck, pnpm run lint (0 errors), pnpm run test (602 passed) all green. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -33,11 +33,11 @@ jobs:
|
||||
|
||||
- name: Typecheck
|
||||
run: |
|
||||
pnpm --filter @groombook/api typecheck
|
||||
pnpm run typecheck
|
||||
pnpm --filter @groombook/db typecheck
|
||||
|
||||
- name: Lint
|
||||
run: pnpm --filter @groombook/api lint
|
||||
run: pnpm run lint
|
||||
|
||||
test:
|
||||
name: Test
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Run tests
|
||||
run: pnpm --filter @groombook/api test
|
||||
run: pnpm run test
|
||||
|
||||
docker:
|
||||
name: Build & Push Docker Images
|
||||
|
||||
Reference in New Issue
Block a user