Upload code coverage to Codecov from CI#24
Merged
Conversation
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>
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 ☂️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: thetestjob's PHP 8.3 combo now runs PHPUnit via-c extensions/NativeMarkdown(which scopes coverage tosrc/) with--coverage-clover, and uploads throughcodecov/codecov-action@v5using the orgCODECOV_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.