From c1033204f2f0921a288eba622015f0a5a77e08a2 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 27 Jul 2022 12:30:56 -0700 Subject: [PATCH] fix: skip kcov on non linux --- src/kcov/__tests__/kcov.test.ts | 2 +- src/kcov/kcov.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kcov/__tests__/kcov.test.ts b/src/kcov/__tests__/kcov.test.ts index 180b0cd2..c94ce4e6 100644 --- a/src/kcov/__tests__/kcov.test.ts +++ b/src/kcov/__tests__/kcov.test.ts @@ -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 } diff --git a/src/kcov/kcov.ts b/src/kcov/kcov.ts index 4c971559..2443d9a1 100644 --- a/src/kcov/kcov.ts +++ b/src/kcov/kcov.ts @@ -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 }