mirror of
https://github.com/actions/javascript-action.git
synced 2025-12-10 12:52:36 +00:00
fix: setting process.env to child_pocess (#24)
This commit is contained in:
@@ -19,5 +19,5 @@ test('wait 500 ms', async() => {
|
|||||||
test('test runs', () => {
|
test('test runs', () => {
|
||||||
process.env['INPUT_MILLISECONDS'] = 500;
|
process.env['INPUT_MILLISECONDS'] = 500;
|
||||||
const ip = path.join(__dirname, 'index.js');
|
const ip = path.join(__dirname, 'index.js');
|
||||||
console.log(cp.execSync(`node ${ip}`).toString());
|
console.log(cp.execSync(`node ${ip}`, { env: process.env }).toString());
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user