Skip to content

Commit 488d899

Browse files
committed
test: skip powershell installation in GitHub Actions
1 parent fd436d2 commit 488d899

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/powershell/__tests__/powershell.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import { setupPowershell } from "../powershell"
22
import { testBin } from "../../utils/tests/test-helpers"
33
import { getVersion } from "../../versions/versions"
4+
import ciDetect from "@npmcli/ci-detect"
45

56
jest.setTimeout(300000)
67
describe("setup-powershell", () => {
78
it("should setup powershell", async () => {
9+
if (process.platform === "win32" && ciDetect() == "github-actions") {
10+
// results in errors
11+
return
12+
}
13+
814
const installInfo = await setupPowershell(getVersion("powershell", undefined), "", process.arch)
915

1016
await testBin("pwsh", ["--version"], installInfo.binDir)

0 commit comments

Comments
 (0)