(cliArgs: CliArgs)
| 14 | const GITLAB_CONFIG_SEPARATE_PATH = '.gitlab/ci/code-pushup.gitlab-ci.yml'; |
| 15 | |
| 16 | export async function promptCiProvider(cliArgs: CliArgs): Promise<CiProvider> { |
| 17 | if (isCiProvider(cliArgs.ci)) { |
| 18 | return cliArgs.ci; |
| 19 | } |
| 20 | if (cliArgs.yes) { |
| 21 | return 'none'; |
| 22 | } |
| 23 | return select<CiProvider>({ |
| 24 | message: 'CI/CD integration:', |
| 25 | choices: [ |
| 26 | { name: 'GitHub Actions', value: 'github' }, |
| 27 | { name: 'GitLab CI/CD', value: 'gitlab' }, |
| 28 | { name: 'none', value: 'none' }, |
| 29 | ], |
| 30 | default: 'none', |
| 31 | }); |
| 32 | } |
| 33 | |
| 34 | export async function resolveCi( |
| 35 | tree: Tree, |
no test coverage detected