mirror of https://github.com/aminya/setup-cpp
test: skip powershell installation in GitHub Actions
This commit is contained in:
parent
fd436d2ed1
commit
488d899a8f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue