ci(superdoc): add Codecov coverage reporting - #2831
Conversation
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.
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 ☂️ |
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.
|
🎉 This PR is included in @superdoc-dev/react v1.2.0-next.16 The release is available on GitHub release |
|
🎉 This PR is included in vscode-ext v2.3.0-next.19 |
|
🎉 This PR is included in template-builder v1.5.0-next.19 The release is available on GitHub release |
|
🎉 This PR is included in esign v2.3.0-next.19 The release is available on GitHub release |
|
🎉 This PR is included in superdoc v1.26.0-next.19 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-cli v0.7.0-next.20 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-sdk v1.6.0-next.17 |
|
🎉 This PR is included in superdoc-cli v0.7.0 The release is available on GitHub release |
|
🎉 This PR is included in superdoc v1.27.0 The release is available on GitHub release |
|
🎉 This PR is included in @superdoc-dev/react v1.2.0 The release is available on GitHub release |
|
🎉 This PR is included in superdoc-sdk v1.6.0 |
|
🎉 This PR is included in vscode-ext v2.3.0 |
Adds Codecov coverage reporting for the
superdocpackage. A newcoveragejob inci-superdoc.ymlruns vitest with v8 coverage scoped topackages/superdoc/src/**and uploadslcov.infoviacodecov/codecov-action@v5. The job is wired into thevalidategate so failures block merge.codecov.ymlwith minimal config:autoproject + patch targets, 1% thresholdcoverageCI job (depends onbuild, mirrors theunit-testssetup: pnpm/node/bun + canvas system deps)superdocflagvalidatejob now also waits oncoverageRequires
CODECOV_TOKENto be added as a repo secret before this lands (or relies on tokenless OIDC).