Skip to content

Commit 39f4c09

Browse files
committed
chore: Run only on Linux
1 parent bc9a292 commit 39f4c09

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/integration/tools/mongodb/mongodbHelpers.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,10 @@ function isTestContainersCluster(
114114
function isMongoDBEnvSupported(
115115
downloadOptions: MongoClusterOptions["downloadOptions"] | MongoSearchConfiguration
116116
): boolean {
117-
if (isSearchOptions(downloadOptions)) {
118-
try {
119-
execSync("docker --version");
120-
return true;
121-
} catch {
122-
return false;
123-
}
117+
// on GHA, OSX does not support nested virtualisation and we don't release
118+
// windows containers, so for now we can only run these tests in Linux.
119+
if (isSearchOptions(downloadOptions) && process.env.GITHUB_ACTIONS === "true") {
120+
return process.platform === "linux";
124121
}
125122

126123
return true;

0 commit comments

Comments
 (0)