perf(ci): run the Windows typecheck once per matrix (#14875)

This commit is contained in:
Vincent Koc authored and GitHub committed 2026-11-27 18:13:53 +08:00
1 parent 1aa301e149
commit f89480536d
2 files changed
+2

No files matched your search

+1
View File
@@ -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"
@@ -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)