You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(ci): add typecheck workflow to wire PR #1438 tooling into CI #1460
PR #1438 added a root yarn typecheck script and per-package typecheck scripts that run tsc --noEmit in every TypeScript workspace (web, backend, db, schemas, shared). The local tooling half of the original plan is shipped; the CI workflow half was deliberately deferred to this follow-up.
Without a CI workflow, the new tooling is opt-in for contributors only. We need a PR-time check so that breaking tsc is surfaced on the PR timeline within seconds (parallel to the existing lint.yml and test.yml workflows).
Proposed solution
Add .github/workflows/typecheck.yml that runs on every PR targeting main:
Why the web workspace is excluded from this workflow
packages/web's tsc --noEmit depends on .next/types/**/*.ts (declared in its tsconfig.jsoninclude) being generated by next build. Without that, tsc reports a flood of "Cannot find module '@/public/...'" errors. The web package is already type-checked transitively via next build inside the existing pr-gate.yml Docker build job. CI time on web is dominated by the Docker build itself, so a separate tsc --noEmit step adds latency without catching anything new.
Approach: have the workflow matrix exclude @sourcebot/web via yarn workspaces foreach --all --topological run typecheck --exclude @sourcebot/web. The remaining 4 workspaces (backend, db, schemas, shared) have no .next-generation dependency and type-check cleanly.
Acceptance criteria
The new Typecheck CI workflow reports a status on every PR targeting main.
yarn typecheck from the repository root exits 0 on current main (after yarn db:generate).
Picking this up. Added .github/workflows/typecheck.yml (commit d95c7e59) on top of the local tooling that already shipped in PR #1438. The two commits together close out issue #1437.
Workflow steps:
yarn install --frozen-lockfile
yarn build:deps (so schemas/db/shared/query-language dist files are fresh)
Activity
Harsh23Kashyap commentedon Jul 17, 2026
Picking this up. Added
.github/workflows/typecheck.yml(commitd95c7e59) on top of the local tooling that already shipped in PR #1438. The two commits together close out issue #1437.Workflow steps:
yarn install --frozen-lockfileyarn build:deps(so schemas/db/shared/query-language dist files are fresh)yarn workspace @sourcebot/db prisma:generate(so generated client matches schema)yarn workspaces foreach --all --topological --exclude @sourcebot/web run typecheckPR updated: #1438
Will not post a daily nudge; will reply in-thread if CodeRabbit or Bugbot finds anything actionable.