mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-07 18:42:25 +00:00
test(scripts): focus github helper routing
This commit is contained in:
@@ -666,9 +666,32 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
|
||||
],
|
||||
],
|
||||
["scripts/dependency-changes-report.mjs", ["test/scripts/dependency-changes-report.test.ts"]],
|
||||
[
|
||||
"scripts/github/dependency-guard.mjs",
|
||||
[
|
||||
"test/scripts/dependency-guard-script.test.ts",
|
||||
"test/scripts/dependency-guard-workflow.test.ts",
|
||||
],
|
||||
],
|
||||
[
|
||||
"scripts/github/guard-shared.mjs",
|
||||
[
|
||||
"test/scripts/dependency-guard-script.test.ts",
|
||||
"test/scripts/dependency-guard-workflow.test.ts",
|
||||
"test/scripts/security-sensitive-guard-script.test.ts",
|
||||
"test/scripts/security-sensitive-guard-workflow.test.ts",
|
||||
],
|
||||
],
|
||||
[
|
||||
"scripts/github/run-openclaw-cross-os-release-checks.sh",
|
||||
["test/scripts/openclaw-cross-os-release-workflow.test.ts"],
|
||||
],
|
||||
[
|
||||
"scripts/github/security-sensitive-guard.mjs",
|
||||
["test/scripts/security-sensitive-guard-script.test.ts"],
|
||||
[
|
||||
"test/scripts/security-sensitive-guard-script.test.ts",
|
||||
"test/scripts/security-sensitive-guard-workflow.test.ts",
|
||||
],
|
||||
],
|
||||
[
|
||||
"scripts/dependency-ownership-surface-report.mjs",
|
||||
|
||||
@@ -1152,9 +1152,37 @@ describe("scripts/test-projects changed-target routing", () => {
|
||||
targets: ["test/scripts/dependency-changes-report.test.ts"],
|
||||
});
|
||||
|
||||
expect(resolveChangedTestTargetPlan(["scripts/github/dependency-guard.mjs"])).toEqual({
|
||||
mode: "targets",
|
||||
targets: [
|
||||
"test/scripts/dependency-guard-script.test.ts",
|
||||
"test/scripts/dependency-guard-workflow.test.ts",
|
||||
],
|
||||
});
|
||||
|
||||
expect(resolveChangedTestTargetPlan(["scripts/github/guard-shared.mjs"])).toEqual({
|
||||
mode: "targets",
|
||||
targets: [
|
||||
"test/scripts/dependency-guard-script.test.ts",
|
||||
"test/scripts/dependency-guard-workflow.test.ts",
|
||||
"test/scripts/security-sensitive-guard-script.test.ts",
|
||||
"test/scripts/security-sensitive-guard-workflow.test.ts",
|
||||
],
|
||||
});
|
||||
|
||||
expect(
|
||||
resolveChangedTestTargetPlan(["scripts/github/run-openclaw-cross-os-release-checks.sh"]),
|
||||
).toEqual({
|
||||
mode: "targets",
|
||||
targets: ["test/scripts/openclaw-cross-os-release-workflow.test.ts"],
|
||||
});
|
||||
|
||||
expect(resolveChangedTestTargetPlan(["scripts/github/security-sensitive-guard.mjs"])).toEqual({
|
||||
mode: "targets",
|
||||
targets: ["test/scripts/security-sensitive-guard-script.test.ts"],
|
||||
targets: [
|
||||
"test/scripts/security-sensitive-guard-script.test.ts",
|
||||
"test/scripts/security-sensitive-guard-workflow.test.ts",
|
||||
],
|
||||
});
|
||||
|
||||
expect(
|
||||
|
||||
Reference in New Issue
Block a user