Skip to content

ci(superdoc): add Codecov coverage reporting - #2831

Merged
caio-pizzol merged 6 commits into
mainfrom
caio/add-codecov
Apr 16, 2026
Merged

ci(superdoc): add Codecov coverage reporting#2831
caio-pizzol merged 6 commits into
mainfrom
caio/add-codecov

Conversation

@caio-pizzol

Copy link
Copy Markdown
Contributor

Adds Codecov coverage reporting for the superdoc package. A new coverage job in ci-superdoc.yml runs vitest with v8 coverage scoped to packages/superdoc/src/** and uploads lcov.info via codecov/codecov-action@v5. The job is wired into the validate gate so failures block merge.

  • New codecov.yml with minimal config: auto project + patch targets, 1% threshold
  • New coverage CI job (depends on build, mirrors the unit-tests setup: pnpm/node/bun + canvas system deps)
  • Coverage uploaded with the superdoc flag
  • validate job now also waits on coverage

Requires CODECOV_TOKEN to be added as a repo secret before this lands (or relies on tokenless OIDC).

Adds a coverage job to ci-superdoc.yml that runs vitest with
v8 coverage on the superdoc package and uploads lcov to Codecov.
Minimal codecov.yml with auto project + patch targets.
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

caio-pizzol and others added 3 commits April 15, 2026 17:43
Move coverage include/exclude into packages/superdoc/vite.config.js
so local and CI agree on what counts. Excludes dev playground,
build scripts, and pure re-export entry points (index.js, main.js,
super-editor.js, headless-toolbar*.js). Coverage rises from
~64% to ~75% by measuring only code we ship.
@caio-pizzol
caio-pizzol added this pull request to the merge queue Apr 16, 2026
@caio-pizzol caio-pizzol self-assigned this Apr 16, 2026
Merged via the queue into main with commit f175c5d Apr 16, 2026
48 of 53 checks passed
@caio-pizzol
caio-pizzol deleted the caio/add-codecov branch April 16, 2026 00:58
@superdoc-bot

superdoc-bot Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in @superdoc-dev/react v1.2.0-next.16

The release is available on GitHub release

@superdoc-bot

superdoc-bot Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in vscode-ext v2.3.0-next.19

@superdoc-bot

superdoc-bot Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in template-builder v1.5.0-next.19

The release is available on GitHub release

@superdoc-bot

superdoc-bot Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in esign v2.3.0-next.19

The release is available on GitHub release

@superdoc-bot

superdoc-bot Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in superdoc v1.26.0-next.19

The release is available on GitHub release

@superdoc-bot

superdoc-bot Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in superdoc-cli v0.7.0-next.20

The release is available on GitHub release

@superdoc-bot

superdoc-bot Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in superdoc-sdk v1.6.0-next.17

@superdoc-bot

superdoc-bot Bot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in superdoc-cli v0.7.0

The release is available on GitHub release

@superdoc-bot

superdoc-bot Bot commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in superdoc v1.27.0

The release is available on GitHub release

@superdoc-bot

superdoc-bot Bot commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in @superdoc-dev/react v1.2.0

The release is available on GitHub release

@superdoc-bot

superdoc-bot Bot commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in superdoc-sdk v1.6.0

@superdoc-bot

superdoc-bot Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in vscode-ext v2.3.0

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants