mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-24 05:59:33 +00:00
fix(ci): keep ci workflow edits off fast-only routing
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user