Skip to content

Commit

Permalink
fix(engine): pass process.env.CI to workers
Browse files Browse the repository at this point in the history
- Fixes usages of environment variables is `eslint-remote-tester.config.js`
- Fixes cache failures of ci-runner
  • Loading branch information
AriPerkkio committed Dec 12, 2020
1 parent 485fd53 commit 74c7831
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/engine/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@ function scanRepository(
repository,
configurationLocation: resolveConfigurationLocation(),
},
// Prevent git from prompting password. Instead just fail repository cloning.
env: { GIT_TERMINAL_PROMPT: '0' },

// TODO: use worker.SHARE_ENV. Figure out how to combine it with GIT_TERMINAL_PROMPT
env: {
// Prevent git from prompting password. Instead just fail repository cloning.
GIT_TERMINAL_PROMPT: '0',

// Pass CI flag to worker_threads
CI: process.env.CI,
},
});

worker.on('message', (message: WorkerMessage) => {
Expand Down

0 comments on commit 74c7831

Please sign in to comment.