blob: 32cf03490469ad788c780f0b302ab4a4e26bbf4a [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, '..', 'lib', 'main.js')
const options: cp.ExecSyncOptions = {
env: process.env,
}
console.log(cp.execSync(`node ${ip}`, options).toString())
})
// TODO: add more