mirror of https://github.com/aminya/setup-cpp
fix: fix skipping graphviz on macos
This commit is contained in:
parent
36d895f6c6
commit
77fbfe849b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -7,17 +7,17 @@ import { macosVersion } from "../../utils/env/macos_version"
|
||||||
|
|
||||||
jest.setTimeout(300000)
|
jest.setTimeout(300000)
|
||||||
describe("setup-graphviz", () => {
|
describe("setup-graphviz", () => {
|
||||||
|
if (process.platform === "darwin" && macosVersion()[0] <= 11) {
|
||||||
|
test.skip("Skipping graphviz test on macOS 11 or earlier", () => {})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let directory: string
|
let directory: string
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
directory = await setupTmpDir("graphviz")
|
directory = await setupTmpDir("graphviz")
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should setup graphviz", async () => {
|
it("should setup graphviz", async () => {
|
||||||
if (macosVersion()[0] <= 11) {
|
|
||||||
test.todo("Skipping graphviz test on macOS 11 or earlier")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const installInfo = await setupGraphviz(
|
const installInfo = await setupGraphviz(
|
||||||
getVersion("graphviz", undefined, await ubuntuVersion()),
|
getVersion("graphviz", undefined, await ubuntuVersion()),
|
||||||
directory,
|
directory,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { execRootSync } from "admina"
|
||||||
jest.setTimeout(300000)
|
jest.setTimeout(300000)
|
||||||
describe("setup-nala", () => {
|
describe("setup-nala", () => {
|
||||||
if (!isUbuntu()) {
|
if (!isUbuntu()) {
|
||||||
test.todo("should setup nala")
|
test.skip("should setup nala", () => {})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
it("should setup nala", async () => {
|
it("should setup nala", async () => {
|
||||||
|
|
|
@ -7,6 +7,10 @@ import memoize from "micro-memoize"
|
||||||
* @returns {number[]} - The macOS version as an array of numbers
|
* @returns {number[]} - The macOS version as an array of numbers
|
||||||
*/
|
*/
|
||||||
function macosVersion_raw() {
|
function macosVersion_raw() {
|
||||||
|
if (process.platform !== "darwin") {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
|
||||||
const { version } = macosRelease()
|
const { version } = macosRelease()
|
||||||
return version.split(".").map((v) => parseInt(v, 10))
|
return version.split(".").map((v) => parseInt(v, 10))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue