Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion test/ci-exact-head-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ const workflowPaths = [
".github/workflows/reviewer-ci.yml",
] as const;

const requiredVerificationWorkflowPaths = [
...workflowPaths,
".github/workflows/patch-validator-image.yml",
] as const;

/** Read one authoritative pull-request verification workflow as plain text. */
function readWorkflow(path: (typeof workflowPaths)[number]): string {
function readWorkflow(path: string): string {
return readFileSync(path, "utf8");
}

Expand Down Expand Up @@ -107,4 +112,11 @@ describe("pull-request verification exact-head checkout contract", () => {
"- name: install (hash-pinned dependencies)",
);
});

it("does not suppress required exact-head evidence for documentation-only changes", () => {
for (const path of requiredVerificationWorkflowPaths) {
const workflow = readWorkflow(path);
expect(workflow).not.toContain("paths-ignore:");
}
});
});
Loading