MCPcopy Create free account
hub / github.com/code-pushup/cli / runInCI

Function runInCI

packages/ci/src/lib/run.ts:20–33  ·  view source on GitHub ↗
(
  refs: GitRefs,
  api: ProviderAPIClient,
  options?: Options,
  git: SimpleGit = simpleGit(),
)

Source from the content-addressed store, hash-verified

18 * @returns result of run (standalone or monorepo)
19 */
20export 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}

Callers 4

basic.e2e.test.tsFile · 0.90
run.int.test.tsFile · 0.85

Calls 3

createRunEnvFunction · 0.85
runInMonorepoModeFunction · 0.85
runInStandaloneModeFunction · 0.85

Tested by

no test coverage detected