2022-11-15 15:57:34 +00:00
|
|
|
import test from "ava" // eslint-disable-line import/no-unresolved
|
|
|
|
import * as cp from "child_process"
|
|
|
|
import * as path from "path"
|
|
|
|
import * as process from "process"
|
2022-11-14 18:44:23 +00:00
|
|
|
|
|
|
|
// eslint-disable-next-line ava/no-skip-test
|
2022-11-15 15:57:34 +00:00
|
|
|
test.skip("test runs", t => {
|
|
|
|
process.env["INPUT_VERSION"] = "v22.10.2"
|
2022-11-14 18:44:23 +00:00
|
|
|
const np = process.execPath
|
2022-11-15 15:57:34 +00:00
|
|
|
const ip = path.join(__dirname, "..", "lib", "src", "main.js")
|
2022-11-14 18:44:23 +00:00
|
|
|
const options: cp.ExecFileSyncOptions = {
|
|
|
|
env: process.env
|
|
|
|
}
|
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
console.log(cp.execFileSync(np, [ip], options).toString())
|
|
|
|
t.pass()
|
|
|
|
})
|