Skip to content

Upload code coverage to Codecov from CI#24

Merged
JeroenDeDauw merged 2 commits into
masterfrom
codecov-upload
Jul 6, 2026
Merged

Upload code coverage to Codecov from CI#24
JeroenDeDauw merged 2 commits into
masterfrom
codecov-upload

Conversation

@JeroenDeDauw

Copy link
Copy Markdown
Member

Authored with Claude Code (claude-opus-4-8 (max)), directed by Jeroen. Makes CI produce and upload a code coverage report so the Codecov badge works: the test job's PHP 8.3 combo now runs PHPUnit via -c extensions/NativeMarkdown (which scopes coverage to src/) with --coverage-clover, and uploads through codecov/codecov-action@v5 using the org CODECOV_GLOBAL_TOKEN. No coverage report was ever generated before, so the badge read "unknown" and the Codecov app page 404'd — this produces the first upload.

JeroenDeDauw and others added 2 commits July 7, 2026 00:42
The test job's PHP 8.3 combo now runs PHPUnit via -c extensions/NativeMarkdown,
which scopes coverage to src/, with --coverage-clover, and uploads through
codecov/codecov-action@v5. CI generated no coverage report before, so the
Codecov badge read "unknown" and the app page 404'd.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The org-wide CODECOV_GLOBAL_TOKEN identifies only the org, so codecov-action
needs the repo slug to know which repository to upload for. MediaWiki CI checks
the extension out into a subdirectory, so the action finds no git context at the
workspace root and CC_SLUG comes out empty, causing "Repository not found".
Matches the slug in Codecov's own setup snippet.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@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.

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

@JeroenDeDauw JeroenDeDauw marked this pull request as ready for review July 6, 2026 23:11
@JeroenDeDauw JeroenDeDauw merged commit 18af6b3 into master Jul 6, 2026
12 checks passed
@JeroenDeDauw JeroenDeDauw deleted the codecov-upload branch July 6, 2026 23:11
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.

2 participants