fix: skip kcov on non linux

This commit is contained in:
Amin Yahyaabadi 2022-07-27 12:30:56 -07:00
parent 45eb099dc6
commit c1033204f2
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import { info } from "@actions/core"
jest.setTimeout(300000)
describe("setup-Kcov", () => {
if (process.platform !== "win32") {
if (process.platform !== "linux") {
it.todo("should setup kcov on non-Windows")
return
}

View File

@ -63,7 +63,7 @@ async function buildKcov(file: string, dest: string) {
}
export async function setupKcov(versionGiven: string, setupDir: string, arch: string) {
if (process.platform !== "win32") {
if (process.platform !== "linux") {
info("Kcov is not supported on non-linux")
return
}