blob: 9333b62ba0521f03ad8125e6495e03670a4847b9 [file] [log] [blame]
import * as process from 'process'
import * as cp from 'child_process'
import * as path from 'path'
// shows how the runner will run a javascript action with env / stdout protocol
test('test runs', () => {
process.env['TOKEN'] = 'ABC'
const ip = path.join(__dirname, '..', 'dist', 'index.js')
const options: cp.ExecSyncOptions = {
env: process.env,
}
console.log(cp.execSync(`node ${ip}`, options).toString())
})