Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed scripts/__tests__/ci-module-source.test.mjs

Steven Enamakeld8989b8ad17d
diff --git a/scripts/__tests__/ci-module-source.test.mjs b/scripts/__tests__/ci-module-source.test.mjs
index 58de8f631b..f1f8c810fa 100644
--- a/scripts/__tests__/ci-module-source.test.mjs
+++ b/scripts/__tests__/ci-module-source.test.mjs
@@ -39,6 +39,15 @@ test("enabling the linked-modules feature is flagged", () => {
);
});
+test("running the local module build script from CI is flagged", () => {
+ const found = scan("run: node scripts/modules/build.mjs all", "w.yml");
+ assert.deepEqual(
+ found.map((v) => v.rule),
+ ["module-build-script"],
+ );
+ assert.equal(scan("# node scripts/modules/build.mjs all", "w.yml").length, 0);
+});
+
test("comments may explain the rule", () => {
assert.deepEqual(
scan("# never set OPENHUMAN_MODULE_SOURCE in CI", "w.yml"),