Skip to content

Enforce CLI coverage in CI#317

Open
xianzuyang9-blip wants to merge 1 commit into
anatomia-dev:mainfrom
xianzuyang9-blip:codex/enforce-coverage-ci
Open

Enforce CLI coverage in CI#317
xianzuyang9-blip wants to merge 1 commit into
anatomia-dev:mainfrom
xianzuyang9-blip:codex/enforce-coverage-ci

Conversation

@xianzuyang9-blip

Copy link
Copy Markdown

Summary

  • add an explicit CLI coverage script and declare the matching Vitest v8 coverage provider
  • run coverage on the Node 22 CI leg before uploading Codecov output
  • use the same coverage gate in the release workflow so configured thresholds are actually enforced

Fixes #314.

Verification

  • node config check confirmed package.json, workflows, and lockfile reference the coverage script/provider
  • corepack pnpm -C packages/cli exec vitest run tests/utils/validators.test.ts --coverage loaded the v8 provider and generated packages/cli/coverage/coverage-final.json; the focused run failed thresholds as expected, confirming thresholds now execute

Note: a full local pnpm --filter anatomia-cli coverage run exceeded the 3 minute local timeout before producing final coverage output, so I did not use it as passing evidence.

@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

@xianzuyang9-blip is attempting to deploy a commit to the Ryan's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage thresholds are a phantom gate — never run (no --coverage anywhere), provider undeclared, codecov upload uploads a file nothing generates

1 participant