test: Add unit testing (get-latest-version) (#132)
This commit is contained in:
parent
386980e22b
commit
442aa4dbd4
5 changed files with 80 additions and 21 deletions
|
|
@ -26,11 +26,7 @@ export async function showVersion(
|
|||
}
|
||||
};
|
||||
|
||||
try {
|
||||
result.exitcode = await exec.exec(cmd, args, options);
|
||||
} catch (e) {
|
||||
return e;
|
||||
}
|
||||
result.exitcode = await exec.exec(cmd, args, options);
|
||||
core.debug(`command: ${cmd} ${args}`);
|
||||
core.debug(`exit code: ${result.exitcode}`);
|
||||
core.debug(`stdout: ${result.output}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue