Skip to content

Commit 1037e81

Browse files
committed
fix: skip Docker-only gh-aw lint on Windows
1 parent b28d038 commit 1037e81

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/scripts/verify-workflows.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function verifyGeneratedFiles() {
4141

4242
run("gh-aw", ["compile", "--strict"]);
4343
run(process.execPath, [".github/scripts/patch-gh-aw-lock.mjs"]);
44-
if (canRun("docker", ["info"])) run("gh-aw", ["lint"]);
44+
if (process.platform !== "win32" && canRun("docker", ["info"])) run("gh-aw", ["lint"]);
4545
else console.log("Docker unavailable; strict gh-aw compile completed (generated lint runs on Docker-capable matrix jobs).");
4646
run("actionlint", await conventionalWorkflows());
4747
run("bun", ["test", "tests/workflows"]);

tests/workflows/invariants.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ describe("Pi lockstep agentic workflows", () => {
109109
);
110110
expect(mise).toContain('run = "node .github/scripts/verify-workflows.mjs"');
111111
expect(runner).toContain('run("gh-aw", ["compile", "--strict"])');
112-
expect(runner).toContain('canRun("docker", ["info"])');
112+
expect(runner).toContain(
113+
'process.platform !== "win32" && canRun("docker", ["info"])',
114+
);
113115
expect(runner).toContain("Docker unavailable; strict gh-aw compile completed");
114116
});
115117

0 commit comments

Comments
 (0)