mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:10:45 +00:00
fix(ci): run cross-os checks on Windows
This commit is contained in:
@@ -2,6 +2,7 @@ import { readFileSync } from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const WORKFLOW_PATH = ".github/workflows/openclaw-cross-os-release-checks-reusable.yml";
|
||||
const WRAPPER_PATH = "scripts/github/run-openclaw-cross-os-release-checks.sh";
|
||||
const HARNESS = "bash workflow/scripts/github/run-openclaw-cross-os-release-checks.sh";
|
||||
|
||||
describe("cross-OS release checks workflow", () => {
|
||||
@@ -11,4 +12,13 @@ describe("cross-OS release checks workflow", () => {
|
||||
expect(workflow).toContain(HARNESS);
|
||||
expect(workflow).not.toContain('pnpm dlx "tsx@${TSX_VERSION}"');
|
||||
});
|
||||
|
||||
it("uses Windows-safe npm resolution for the TypeScript loader bootstrap", () => {
|
||||
const wrapper = readFileSync(WRAPPER_PATH, "utf8");
|
||||
|
||||
expect(wrapper).toContain("command -v npm.cmd");
|
||||
expect(wrapper).toContain('npm_tool_dir="$(cygpath -w "${tool_dir}")"');
|
||||
expect(wrapper).toContain('"${npm_cmd}" install --prefix "${npm_tool_dir}"');
|
||||
expect(wrapper).toContain('exec "${node_cmd}" --import "${loader_url}"');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user