Add Nextflow smoke test

This commit is contained in:
Thomas A. Christensen II 2022-06-13 16:38:31 -05:00
parent adcbf207e2
commit 90e8e1e673
Signed by: millironx
GPG key ID: 139C07724802BC5D
3 changed files with 10 additions and 0 deletions

View file

@ -1,4 +1,5 @@
const core = require("@actions/core");
const exec = require("@actions/exec")
const fs = require("fs");
const github = require("@actions/github");
const io = require("@actions/io");
@ -163,6 +164,13 @@ async function run() {
} catch (e) {
core.setFailed(e.message);
}
// Run Nextflow so it downloads its dependencies
try {
const nf_exit_code = await exec.exec("nextflow", ["help"])
} catch (e) {
core.warning("Nextflow appears to have installed correctly, but an error was thrown while running it.")
}
}
run();

1
package-lock.json generated
View file

@ -10,6 +10,7 @@
"license": "ISC",
"dependencies": {
"@actions/core": "^1.8.2",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.0.3",
"@actions/tool-cache": "^2.0.1",
"async-retry": "^1.3.3",

View file

@ -11,6 +11,7 @@
"license": "ISC",
"dependencies": {
"@actions/core": "^1.8.2",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.0.3",
"@actions/tool-cache": "^2.0.1",
"async-retry": "^1.3.3",