Skip to content

Commit 910fcac

Browse files
committed
test(ci): assert GUI lint/build gates stay wired
Review finding (PR #97) showed the GUI build gate can vanish silently; this pins the enhanced gate (PR #99) in the workflow contract test.
1 parent 3cd08c4 commit 910fcac

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎tests/ci-workflows.test.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ describe("GitHub Actions hardening", () => {
2222
expect(workflow).not.toMatch(/uses:\s+\S+@(?:v\d+|main|master)\b/);
2323
});
2424

25+
test("cross-platform CI keeps the GUI lint and build gates", async () => {
26+
// Review finding (PR #97): the GUI build gate was silently dropped once; assert the
27+
// enhanced gate (PR #99) stays wired so broken GUI builds cannot merge unnoticed.
28+
const workflow = await readText(".github/workflows/ci.yml");
29+
30+
expect(workflow).toContain("- name: GUI lint");
31+
expect(workflow).toContain("bun run lint");
32+
expect(workflow).toContain("- name: GUI build");
33+
expect(workflow).toContain("bun run build");
34+
});
35+
2536
test("service lifecycle is least-privilege, bounded, and cannot swallow health failures", async () => {
2637
const workflow = await readText(".github/workflows/service-lifecycle.yml");
2738

0 commit comments

Comments
 (0)