mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 12:24:47 +00:00
ci: run package patch guard in pr checks
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -1398,6 +1398,7 @@ jobs:
|
||||
pnpm tool-display:check
|
||||
pnpm check:host-env-policy:swift
|
||||
pnpm dup:check:coverage
|
||||
pnpm deps:patches:check
|
||||
;;
|
||||
prod-types)
|
||||
pnpm tsgo:prod
|
||||
|
||||
14
test/scripts/ci-workflow-guards.test.ts
Normal file
14
test/scripts/ci-workflow-guards.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user