node-chart-exec
Version:
An executable binary for creating charts in Node.js
10 lines (9 loc) • 373 B
JavaScript
const process = require('process');
const cp = require('child_process');
const path = require('path');
// shows how the runner will run a javascript action with env / stdout protocol
test('test runs', () => {
process.env['INPUT_MILLISECONDS'] = 500;
const ip = path.join(__dirname, 'cli.js');
console.log(cp.execSync(`node ${ip}`, {env: process.env}).toString());
})