test(scripts): focus github helper routing · openclaw/openclaw@9be53b4
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -666,9 +666,32 @@ const TOOLING_SOURCE_TEST_TARGETS = new Map([
|
666 | 666 | ], |
667 | 667 | ], |
668 | 668 | ["scripts/dependency-changes-report.mjs", ["test/scripts/dependency-changes-report.test.ts"]], |
| 669 | +[ |
| 670 | +"scripts/github/dependency-guard.mjs", |
| 671 | +[ |
| 672 | +"test/scripts/dependency-guard-script.test.ts", |
| 673 | +"test/scripts/dependency-guard-workflow.test.ts", |
| 674 | +], |
| 675 | +], |
| 676 | +[ |
| 677 | +"scripts/github/guard-shared.mjs", |
| 678 | +[ |
| 679 | +"test/scripts/dependency-guard-script.test.ts", |
| 680 | +"test/scripts/dependency-guard-workflow.test.ts", |
| 681 | +"test/scripts/security-sensitive-guard-script.test.ts", |
| 682 | +"test/scripts/security-sensitive-guard-workflow.test.ts", |
| 683 | +], |
| 684 | +], |
| 685 | +[ |
| 686 | +"scripts/github/run-openclaw-cross-os-release-checks.sh", |
| 687 | +["test/scripts/openclaw-cross-os-release-workflow.test.ts"], |
| 688 | +], |
669 | 689 | [ |
670 | 690 | "scripts/github/security-sensitive-guard.mjs", |
671 | | -["test/scripts/security-sensitive-guard-script.test.ts"], |
| 691 | +[ |
| 692 | +"test/scripts/security-sensitive-guard-script.test.ts", |
| 693 | +"test/scripts/security-sensitive-guard-workflow.test.ts", |
| 694 | +], |
672 | 695 | ], |
673 | 696 | [ |
674 | 697 | "scripts/dependency-ownership-surface-report.mjs", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1152,9 +1152,37 @@ describe("scripts/test-projects changed-target routing", () => {
|
1152 | 1152 | targets: ["test/scripts/dependency-changes-report.test.ts"], |
1153 | 1153 | }); |
1154 | 1154 | |
| 1155 | +expect(resolveChangedTestTargetPlan(["scripts/github/dependency-guard.mjs"])).toEqual({ |
| 1156 | +mode: "targets", |
| 1157 | +targets: [ |
| 1158 | +"test/scripts/dependency-guard-script.test.ts", |
| 1159 | +"test/scripts/dependency-guard-workflow.test.ts", |
| 1160 | +], |
| 1161 | +}); |
| 1162 | + |
| 1163 | +expect(resolveChangedTestTargetPlan(["scripts/github/guard-shared.mjs"])).toEqual({ |
| 1164 | +mode: "targets", |
| 1165 | +targets: [ |
| 1166 | +"test/scripts/dependency-guard-script.test.ts", |
| 1167 | +"test/scripts/dependency-guard-workflow.test.ts", |
| 1168 | +"test/scripts/security-sensitive-guard-script.test.ts", |
| 1169 | +"test/scripts/security-sensitive-guard-workflow.test.ts", |
| 1170 | +], |
| 1171 | +}); |
| 1172 | + |
| 1173 | +expect( |
| 1174 | +resolveChangedTestTargetPlan(["scripts/github/run-openclaw-cross-os-release-checks.sh"]), |
| 1175 | +).toEqual({ |
| 1176 | +mode: "targets", |
| 1177 | +targets: ["test/scripts/openclaw-cross-os-release-workflow.test.ts"], |
| 1178 | +}); |
| 1179 | + |
1155 | 1180 | expect(resolveChangedTestTargetPlan(["scripts/github/security-sensitive-guard.mjs"])).toEqual({ |
1156 | 1181 | mode: "targets", |
1157 | | -targets: ["test/scripts/security-sensitive-guard-script.test.ts"], |
| 1182 | +targets: [ |
| 1183 | +"test/scripts/security-sensitive-guard-script.test.ts", |
| 1184 | +"test/scripts/security-sensitive-guard-workflow.test.ts", |
| 1185 | +], |
1158 | 1186 | }); |
1159 | 1187 | |
1160 | 1188 | expect( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。