From 0746c746e29cb282db62a90545c2cd22d8a82122 Mon Sep 17 00:00:00 2001 From: Javier Viola Date: Fri, 18 Aug 2023 08:32:11 -0300 Subject: [PATCH] check ZOMBIENET_IMAGE env var (#1257) * check ZOMBIENET_IMAGE env var * fmt --- javascript/packages/cli/src/actions/spawn.ts | 4 +++- javascript/packages/cli/src/actions/test.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/javascript/packages/cli/src/actions/spawn.ts b/javascript/packages/cli/src/actions/spawn.ts index 0f8d73564..5ecd49f1b 100644 --- a/javascript/packages/cli/src/actions/spawn.ts +++ b/javascript/packages/cli/src/actions/spawn.ts @@ -86,7 +86,9 @@ export async function spawn( } } - const inCI = process.env.RUN_IN_CONTAINER === "1"; + const inCI = + process.env.RUN_IN_CONTAINER === "1" || + process.env.ZOMBIENET_IMAGE !== undefined; const options = { monitor, spawnConcurrency, diff --git a/javascript/packages/cli/src/actions/test.ts b/javascript/packages/cli/src/actions/test.ts index 03f32130c..54be786b1 100644 --- a/javascript/packages/cli/src/actions/test.ts +++ b/javascript/packages/cli/src/actions/test.ts @@ -37,7 +37,9 @@ export async function test( } process.env.DEBUG = "zombie"; - const inCI = process.env.RUN_IN_CONTAINER === "1"; + const inCI = + process.env.RUN_IN_CONTAINER === "1" || + process.env.ZOMBIENET_IMAGE !== undefined; // use `k8s` as default const providerToUse = opts.provider && AVAILABLE_PROVIDERS.includes(opts.provider)