From f89480536df8cc7ea4187bc686d37e7a202bf135 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 27 Nov 2026 18:13:53 +0800 Subject: [PATCH] perf(ci): run the Windows typecheck once per matrix (#14875) --- .github/workflows/ci.yml | 1 + tests/process-global/curatedWindowsLane.test.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01894f7e253..e25b6706b21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1081,6 +1081,7 @@ jobs: key: rea-windows-build-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.nvmrc', '.npmrc', 'package-lock.json') }}-${{ github.sha }} restore-keys: rea-windows-build-v1-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.nvmrc', '.npmrc', 'package-lock.json') }}- - name: Typecheck with the official Windows compiler + if: matrix.suite == 'capabilities' env: GOMAXPROCS: "2" GOMEMLIMIT: "3GiB" diff --git a/tests/process-global/curatedWindowsLane.test.ts b/tests/process-global/curatedWindowsLane.test.ts index 091f3f9928e..03ec4316f14 100644 --- a/tests/process-global/curatedWindowsLane.test.ts +++ b/tests/process-global/curatedWindowsLane.test.ts @@ -217,6 +217,7 @@ it("checks the complete source with the fallback compiler before Windows build r const built = steps.findIndex((step) => step.run === "npm run build:cached"); expect(restored).toBeGreaterThan(-1); expect(checked).toBeGreaterThan(restored); + expect(steps[checked]?.if).toBe("matrix.suite == 'capabilities'"); expect(built).toBeGreaterThan(checked); const vitestRuns = steps .map((step) => step.run)