fix(ci): keep ci workflow edits off fast-only routing

This commit is contained in:
Vincent Koc
2026-06-16 20:27:45 +02:00
parent 3ad3cc61b8
commit 76658cd159
6 changed files with 31 additions and 4 deletions

View File

@@ -345,6 +345,18 @@ describe("ci workflow guards", () => {
});
});
it("keeps workflow guards in fast CI-routing checks", () => {
const workflow = readCiWorkflow();
const fastCoreJob = workflow.jobs["checks-fast-core"];
const runStep = fastCoreJob.steps.find(
(step) => step.name === "Run ${{ matrix.task }} (${{ matrix.runtime }})",
);
expect(runStep.run).toContain("contracts-plugins-ci-routing)");
expect(runStep.run).toContain("ci-routing)");
expect(runStep.run.match(/test\/scripts\/ci-workflow-guards\.test\.ts/g)?.length).toBe(2);
});
it("keeps push docs validation ClawHub-backed", () => {
const workflow = readFileSync(".github/workflows/docs.yml", "utf8");

View File

@@ -484,6 +484,13 @@ describe("scripts/test-projects changed-target routing", () => {
});
});
it("keeps CI workflow edits on workflow guard tests", () => {
expect(resolveChangedTestTargetPlan([".github/workflows/ci.yml"])).toEqual({
mode: "targets",
targets: ["test/scripts/ci-workflow-guards.test.ts"],
});
});
it("keeps Crabbox and Testbox workflow edits on workflow regression tests", () => {
for (const workflowPath of [
".github/workflows/ci-check-testbox.yml",