From ab6209be6cc9cf93ad14004d6a84ecd532cb373a Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 27 Oct 2026 11:54:06 +0000 Subject: [PATCH 1/4] Exclude main project tests from `pr-checks/tsconfig.json` --- pr-checks/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr-checks/tsconfig.json b/pr-checks/tsconfig.json index e0a6c856c9..367148ab9a 100644 --- a/pr-checks/tsconfig.json +++ b/pr-checks/tsconfig.json @@ -9,5 +9,5 @@ "noEmit": true }, "include": ["./**/*.ts", "../src/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "../src/**/*.test.ts"] } From 9b9c8e25e2a1de532783c33b13f01712209663bb Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 27 Oct 2026 11:56:09 +0000 Subject: [PATCH 2/4] Add check commands to `pr-checks/package.json` --- pr-checks/package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pr-checks/package.json b/pr-checks/package.json index 343f943814..f96b919c15 100644 --- a/pr-checks/package.json +++ b/pr-checks/package.json @@ -2,6 +2,11 @@ "private": true, "description": "Dependencies for codeql-action scripts", "type": "module", + "scripts": { + "typecheck": "tsc --noEmit", + "test": "npx tsx --test", + "checks": "npm run typecheck && npm run test" + }, "dependencies": { "@actions/core": "^2.0.3", "@actions/github": "^8.0.1", From 405433cc6d34f0c9c57178fef0ff71433212695c Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 27 Oct 2026 11:56:52 +0000 Subject: [PATCH 3/4] Add `typecheck` command to `package.json` --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 76ac14cf2d..31607ff78a 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "test": "npm run ava -- src/", "test-debug": "npm run test -- --timeout=20m", "transpile": "tsc --build --verbose tsconfig.json", - "update-pr-checks": "./pr-checks/sync.sh" + "update-pr-checks": "./pr-checks/sync.sh", + "typecheck": "tsc --noEmit" }, "license": "MIT", "workspaces": [ From fe36f120dfa28d8c2fd951bf90ccac2dea5809dd Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 27 Oct 2026 11:57:35 +0000 Subject: [PATCH 4/4] Run `checks` command for `pr-checks` in CI --- .github/workflows/pr-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 5d2b1576f7..ba6dfbcdb8 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -126,10 +126,10 @@ jobs: if: ${{ !cancelled() && steps.install-deps.outcome == 'success' }} run: .github/workflows/script/verify-pr-checks.sh - - name: Run pr-checks tests + - name: Run pr-checks checks if: ${{ !cancelled() && steps.install-deps.outcome == 'success' }} working-directory: pr-checks - run: npx tsx --test + run: npm run checks - name: Run `pr-checks/changenotes.ts` to ensure that all unreleased change notes are valid if: ${{ !cancelled() && steps.install-deps.outcome == 'success' }}