From 0510fd6661550613cec505370ce88134cc30f115 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Thu, 14 May 2026 19:36:09 +0100 Subject: [PATCH] ci: skip typecheck for refs and non-code file PRs (#3624) Follow-up to #3615. The `code` filter currently fires typecheck for any change outside `docs/`, `.changeset/`, `hosting/`, or `.github/` - so a docs-only PR like #3623 (touching `references/ai-chat/.env.example` + `README.md`) triggered the typecheck job. None of the `references/*` packages declare a `typecheck` script either, so even when a real code change lands there, `turbo run typecheck` skips them. Running the job is pure cost. Tightens the filter to also exclude: - `references/**` - playground projects, none of them contribute to `turbo run typecheck` today - `**/*.md` - markdown anywhere - `**/.env.example` - example env files anywhere Two known gaps left open: - references/ have no real CI typecheck coverage. Separate question - either add `typecheck` scripts to each (or top-level `tsc -p`), or accept playground status. - `changes` job still runs (it's a path-filter step) but the dependent jobs all skip on irrelevant PRs. --- .github/workflows/pr_checks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml index 5754f6500..e3312d866 100644 --- a/.github/workflows/pr_checks.yml +++ b/.github/workflows/pr_checks.yml @@ -34,6 +34,9 @@ jobs: - '!.changeset/**' - '!hosting/**' - '!.github/**' + - '!references/**' + - '!**/*.md' + - '!**/.env.example' - '.github/workflows/pr_checks.yml' - '.github/workflows/typecheck.yml' webapp: