mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 22:24:46 +00:00
15 lines
474 B
TypeScript
15 lines
474 B
TypeScript
import { readFileSync } from "node:fs";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
describe("ci workflow guards", () => {
|
|
it("runs the package patch guard in PR CI preflight", () => {
|
|
const workflow = readFileSync(".github/workflows/ci.yml", "utf8");
|
|
const preflightGuards = workflow.slice(
|
|
workflow.indexOf("preflight-guards)"),
|
|
workflow.indexOf("prod-types)"),
|
|
);
|
|
|
|
expect(preflightGuards).toContain("pnpm deps:patches:check");
|
|
});
|
|
});
|