ci: upload coverage to Codecov on push to main#2838
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d49688424f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| paths: | ||
| - 'packages/superdoc/src/**' | ||
| - 'packages/superdoc/vite.config.js' |
There was a problem hiding this comment.
Include test-path changes in coverage workflow triggers
The push.paths filter only matches packages/superdoc/src/** and packages/superdoc/vite.config.js, so merges that change only packages/superdoc/tests/** (or other coverage-affecting test files) will not upload new coverage from main. In those cases the Codecov badge remains stale even though coverage has changed, which undercuts this workflow’s stated goal of keeping main coverage current.
Useful? React with 👍 / 👎.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
The existing CI SuperDoc workflow only runs on pull requests. This means coverage never gets uploaded from the main branch, so the Codecov badge stays stale.
Adds a lightweight
ci-coverage.ymlthat runs on push to main (only when superdoc source changes) and uploads lcov to Codecov. No lint, build, or unit-test gates — just the coverage job.