@theholocron/cli 3.18.3 → 3.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -3306,13 +3306,14 @@ async function runSetup(input) {
3306
3306
  }));
3307
3307
  print(formatStep(steps[steps.length - 1]));
3308
3308
  {
3309
+ const hasTestWorkflow = (config.workflows ?? []).map((e) => typeof e === "string" ? e : e.name).includes("test");
3309
3310
  const packages = await readWorkspacePackages(input.context.repoRoot);
3310
3311
  const existing = await readFile(join(input.context.repoRoot, "codecov.yml"), "utf8").catch(() => null);
3311
- if (packages.length === 0 && existing == null) steps.push({
3312
+ if (!hasTestWorkflow && existing == null) steps.push({
3312
3313
  capability: "source",
3313
3314
  step: "write codecov.yml",
3314
3315
  status: "skip",
3315
- message: "no packages and no existing codecov.yml"
3316
+ message: "no test workflow configured"
3316
3317
  });
3317
3318
  else steps.push(await runStep("source", "write codecov.yml", dryRun, async () => {
3318
3319
  const content = existing != null ? mergeCodecovComponents(existing, packages) : codecovContent(packages);