mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 17:59:54 +00:00
0aeab8d284
Co-authored-by: ewels <ewels@users.noreply.github.com>
17 lines
567 B
TypeScript
17 lines
567 B
TypeScript
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"
|
|
|
|
// eslint-disable-next-line ava/no-skip-test
|
|
test.skip("test runs", t => {
|
|
process.env["INPUT_VERSION"] = "v22.10.2"
|
|
const np = process.execPath
|
|
const ip = path.join(__dirname, "..", "lib", "src", "main.js")
|
|
const options: cp.ExecFileSyncOptions = {
|
|
env: process.env
|
|
}
|
|
// eslint-disable-next-line no-console
|
|
console.log(cp.execFileSync(np, [ip], options).toString())
|
|
t.pass()
|
|
})
|