From aa28493365f30a3be4de0767d8ff7a0534233405 Mon Sep 17 00:00:00 2001 From: luvs01 Date: Fri, 7 Aug 2026 14:33:51 +0900 Subject: [PATCH] test(ci): pin Windows test command with shard --- tests/ci-workflows.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ci-workflows.test.ts b/tests/ci-workflows.test.ts index c5b635d65..e97b53d92 100644 --- a/tests/ci-workflows.test.ts +++ b/tests/ci-workflows.test.ts @@ -163,7 +163,8 @@ describe("GitHub Actions hardening", () => { // the runner's disk and the suite passes against a tree that no longer // exists in git. const winSteps = (ci.jobs?.["platform-windows"] as { steps?: { if?: string; run?: string }[] })?.steps ?? []; - expect(winSteps.some(step => step.run?.includes(`--shard=\${{ matrix.shard }}/${windowsShards.length}`))).toBe(true); + expect(winSteps.some(step => step.run?.includes("bun test --isolate tests") + && step.run.includes(`--shard=\${{ matrix.shard }}/${windowsShards.length}`))).toBe(true); expect(winSteps.some(step => step.if === "runner.environment == 'self-hosted'" && step.run?.includes("git clean -xffd"))).toBe(true);