fix(ci): harden test determinism and dependencies

This commit is contained in:
Marc-André Bombeck committed 2026-07-21 00:36:40 +02:00
1 parent 9adeb8fc19
commit 3ce6726646
13 files changed
+354 -75

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { spawnSync } from "node:child_process";
import { existsSync } from "node:fs";
if (!existsSync(".git")) {
console.log("Skipping Lefthook install: Git metadata is absent");
} else {
const result = spawnSync("lefthook", ["install", "--force"], {
stdio: "inherit",
shell: process.platform === "win32",
});
if (result.error) {
console.error(`Failed to run Lefthook: ${result.error.message}`);
process.exitCode = 1;
} else {
process.exitCode = result.status ?? 1;
}
}