mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
4eeed2d4d7
* ci: add cross-platform matrix (Linux/macOS/Windows) to build, unit-test, adapter-test Add OS matrix with ubuntu-latest, macos-latest, and windows-latest to the build, unit-test, and adapter-test CI jobs. This ensures cross- platform compatibility is verified on every push and PR. Smoke tests remain Linux-only due to xvfb dependency. Relates to #392 (Windows plugin path issues). * test: replace hardcoded /tmp with os.tmpdir() for Windows compatibility Fix Windows CI failures caused by hardcoded '/tmp' paths that don't exist on Windows. Use os.tmpdir() which returns the correct platform- specific temp directory on all operating systems. Files fixed: - src/engine.test.ts: 3 occurrences (mkdtemp, discoverClis path) - src/plugin.test.ts: 2 occurrences (getCommitHash test, mock condition) * test: fix remaining Windows path issues in test files - engine.test.ts: use pathToFileURL().href for dynamic import paths (path.join produces backslashes on Windows, breaking ES module imports) - download.test.ts: replace hardcoded '/tmp' with os.tmpdir() + path.join