(tool: string, options: string[])
| 93 | } |
| 94 | |
| 95 | async function getToolVersion(tool: string, options: string[]) { |
| 96 | try { |
| 97 | const {stdout, stderr, exitCode} = await exec.getExecOutput(tool, options, { |
| 98 | ignoreReturnCode: true, |
| 99 | silent: true |
| 100 | }); |
| 101 | |
| 102 | if (exitCode > 0) { |
| 103 | core.info(`[warning]${stderr}`); |
| 104 | return ''; |
| 105 | } |
| 106 | |
| 107 | return stdout.trim(); |
| 108 | } catch (err) { |
| 109 | return ''; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | export const unique = () => { |
| 114 | const encountered = new Set(); |
no outgoing calls
no test coverage detected