Skip to content

Commit ea2732f

Browse files
committed
test: skip doxygen test on macos 11 + use brew
1 parent dbfc8a8 commit ea2732f

File tree

8 files changed

+19
-12
lines changed

8 files changed

+19
-12
lines changed

dist/actions/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/actions/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/doxygen/__tests__/doxygen.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ import { InstallationInfo } from "../../utils/setup/setupBin"
44
import { getVersion } from "../../versions/versions"
55
import which from "which"
66
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
7+
import { macosVersion } from "../../utils/env/macos_version"
78

89
jest.setTimeout(300000)
910
describe("setup-doxygen", () => {
11+
if (process.platform === "darwin" && macosVersion()[0] <= 11) {
12+
test.skip("Skipping doxygen test on macOS 11 or earlier", () => {})
13+
return
14+
}
15+
1016
let directory: string
1117
beforeAll(async () => {
1218
directory = await setupTmpDir("doxygen")

src/doxygen/doxygen.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,13 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
7575
return installationInfo
7676
}
7777
case "darwin": {
78-
let installationInfo: InstallationInfo
79-
try {
80-
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
81-
} catch {
82-
installationInfo = await setupBrewPack("doxygen", undefined)
83-
}
78+
// let installationInfo: InstallationInfo
79+
// try {
80+
// installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
81+
// } catch {
82+
const installationInfo = await setupBrewPack("doxygen", undefined)
83+
// }
84+
8485
// only install graphviz if the macOS version is greater than 11
8586
if (macosVersion()[0] > 11) {
8687
await setupGraphviz(getVersion("graphviz", undefined), "", arch)

0 commit comments

Comments
 (0)