mirror of https://github.com/aminya/setup-cpp
test: test RUNNER_TOOL_CACHE in cache tests
This commit is contained in:
parent
b43302cf75
commit
6d9651573c
|
@ -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")
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue