diff --git a/src/powershell/__tests__/powershell.test.ts b/src/powershell/__tests__/powershell.test.ts index 411edb45..c0c41929 100644 --- a/src/powershell/__tests__/powershell.test.ts +++ b/src/powershell/__tests__/powershell.test.ts @@ -1,10 +1,16 @@ import { setupPowershell } from "../powershell" import { testBin } from "../../utils/tests/test-helpers" import { getVersion } from "../../versions/versions" +import ciDetect from "@npmcli/ci-detect" jest.setTimeout(300000) describe("setup-powershell", () => { it("should setup powershell", async () => { + if (process.platform === "win32" && ciDetect() == "github-actions") { + // results in errors + return + } + const installInfo = await setupPowershell(getVersion("powershell", undefined), "", process.arch) await testBin("pwsh", ["--version"], installInfo.binDir)