From 488d899a8fac02806bbf82abd9e91819662a9ab4 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sun, 20 Nov 2022 18:44:41 -0800 Subject: [PATCH] test: skip powershell installation in GitHub Actions --- src/powershell/__tests__/powershell.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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)