mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 01:46:04 +00:00
Add Nextflow smoke test
This commit is contained in:
parent
adcbf207e2
commit
90e8e1e673
3 changed files with 10 additions and 0 deletions
8
index.js
8
index.js
|
@ -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
1
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue