( refs: GitRefs, api: ProviderAPIClient, options?: Options, git: SimpleGit = simpleGit(), )
| 18 | * @returns result of run (standalone or monorepo) |
| 19 | */ |
| 20 | export async function runInCI( |
| 21 | refs: GitRefs, |
| 22 | api: ProviderAPIClient, |
| 23 | options?: Options, |
| 24 | git: SimpleGit = simpleGit(), |
| 25 | ): Promise<RunResult> { |
| 26 | const env = await createRunEnv(refs, api, options, git); |
| 27 | |
| 28 | if (env.settings.monorepo) { |
| 29 | return runInMonorepoMode(env); |
| 30 | } |
| 31 | |
| 32 | return runInStandaloneMode(env); |
| 33 | } |
no test coverage detected