diff --git a/src/cmake/__tests__/cmake.test.ts b/src/cmake/__tests__/cmake.test.ts index 8a1f798a..4f448ab9 100644 --- a/src/cmake/__tests__/cmake.test.ts +++ b/src/cmake/__tests__/cmake.test.ts @@ -19,7 +19,7 @@ describe("setup-cmake", () => { const { binDir } = await setupCmake("3.20.2", directory, process.arch) await testBin("cmake", ["--version"], binDir) if (isGitHubCI()) { - expect(binDir).toMatch("hostedtoolcache") + expect(binDir).toMatch(process.env.RUNNER_TOOL_CACHE ?? "hostedtoolcache") } }) diff --git a/src/llvm/__tests__/llvm.test.ts b/src/llvm/__tests__/llvm.test.ts index ca5c19c0..69aab16d 100644 --- a/src/llvm/__tests__/llvm.test.ts +++ b/src/llvm/__tests__/llvm.test.ts @@ -55,7 +55,7 @@ describe("setup-llvm", () => { await testBin("clang++", ["--version"], binDir) if (isGitHubCI()) { - expect(binDir).toMatch("hostedtoolcache") + expect(binDir).toMatch(process.env.RUNNER_TOOL_CACHE ?? "hostedtoolcache") } expect(process.env.CC?.includes("clang")).toBeTruthy() diff --git a/src/ninja/__tests__/ninja.test.ts b/src/ninja/__tests__/ninja.test.ts index 47ae723b..3ef9d6fc 100644 --- a/src/ninja/__tests__/ninja.test.ts +++ b/src/ninja/__tests__/ninja.test.ts @@ -22,7 +22,7 @@ describe("setup-ninja", () => { it("should find Ninja in the cache", async () => { const binDir = await testNinja(directory) if (isGitHubCI()) { - expect(binDir).toMatch("hostedtoolcache") + expect(binDir).toMatch(process.env.RUNNER_TOOL_CACHE ?? "hostedtoolcache") } }) diff --git a/src/task/__tests__/task.test.ts b/src/task/__tests__/task.test.ts index 465dc3dc..5405b0b3 100644 --- a/src/task/__tests__/task.test.ts +++ b/src/task/__tests__/task.test.ts @@ -18,7 +18,7 @@ describe("setup-task", () => { it("should find task in the cache", async () => { const { binDir } = await setupTask("3.10.0", directory, process.arch) if (isGitHubCI()) { - expect(binDir).toMatch("hostedtoolcache") + expect(binDir).toMatch(process.env.RUNNER_TOOL_CACHE ?? "hostedtoolcache") } })