Skip to content

Commit ced8892

Browse files
committed
fix: keep workflow lint portable without Docker
1 parent 3a49d7b commit ced8892

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

mise.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ description = "Compile, patch, lint, and test trusted workflow policy"
8181
run = """
8282
gh-aw compile --strict
8383
node .github/scripts/patch-gh-aw-lock.mjs
84-
gh-aw lint
84+
if docker info >/dev/null 2>&1; then
85+
gh-aw lint
86+
else
87+
echo 'Docker unavailable; strict gh-aw compile completed (generated lint runs on Docker-capable matrix jobs).'
88+
fi
8589
find .github/workflows -name '*.yml' ! -name '*.lock.yml' -print0 | xargs -0 actionlint
8690
bun test tests/workflows
8791
if ! git diff --quiet -- .github/workflows/*.lock.yml .github/workflows/agentics-maintenance.yml; then

tests/workflows/invariants.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ describe("Pi lockstep agentic workflows", () => {
9090
}
9191
});
9292

93+
test("keeps workflow validation portable when Docker is unavailable", async () => {
94+
const source = await readFile(resolve(root, "mise.toml"), "utf8");
95+
expect(source).toContain("if docker info >/dev/null 2>&1; then");
96+
expect(source).toContain("gh-aw lint");
97+
expect(source).toContain("Docker unavailable; strict gh-aw compile completed");
98+
});
99+
93100
test("removes the stale PAT and CodeRabbit merge gate", async () => {
94101
const path = resolve(
95102
root,

0 commit comments

Comments
 (0)