Skip to content

ci: upload coverage to Codecov on push to main#2838

Merged
caio-pizzol merged 1 commit intomainfrom
caio/codecov-main-upload
Apr 16, 2026
Merged

ci: upload coverage to Codecov on push to main#2838
caio-pizzol merged 1 commit intomainfrom
caio/codecov-main-upload

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

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.yml that 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.

@caio-pizzol caio-pizzol merged commit 98b463a into main Apr 16, 2026
4 checks passed
@caio-pizzol caio-pizzol deleted the caio/codecov-main-upload branch April 16, 2026 01:35
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +9 to +11
paths:
- 'packages/superdoc/src/**'
- 'packages/superdoc/vite.config.js'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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