non-production: set up codecov in this repo#39
Merged
Merged
Conversation
- Pass secrets: inherit to the shared ruby-test-matrix workflow so CODECOV_TOKEN reaches the Codecov upload step - Add simplecov and simplecov-lcov, emitting coverage/lcov.info on CI - Add repo-level codecov.yml (coverage at or below 80%)
Contributor
There was a problem hiding this comment.
Pull request overview
This PR sets up Codecov reporting for the repo by adding SimpleCov-based coverage generation (including LCOV output for CI) and wiring GitHub Actions to provide the Codecov token to the shared test-matrix workflow.
Changes:
- Add SimpleCov + simplecov-lcov dependencies and initialize coverage early in the RSpec boot path.
- Emit
coverage/lcov.infowhen running under GitHub Actions to support Codecov uploads. - Add a minimal
codecov.ymlto configure project/patch status targets.
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
spec/spec_helper.rb |
Loads coverage initialization before any app/test code executes. |
spec/simplecov_helper.rb |
Configures SimpleCov and emits LCOV on CI (HTML locally). |
Gemfile |
Adds simplecov and simplecov-lcov dev dependencies. |
Gemfile.lock |
Locks SimpleCov deps, but also introduces unrelated dependency churn (see comment). |
gemfiles/activesupport_{7_0,7_1,7_2,8_0}.gemfile |
Ensures coverage deps are available across the appraisal matrix gemfiles. |
codecov.yml |
Configures Codecov status targets/thresholds. |
.github/workflows/pipeline.yml |
Passes secrets into the reusable workflow (see comment). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 ☂️ |
dcaddell
approved these changes
Jul 15, 2026
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.
Summary
Coverage
Measured locally with Ruby 3.3.8: 120 examples, 0 failures. Line Coverage: 72.92% (350 / 480). codecov.yml was added because coverage is at or below 80%. lcov generation verified locally (coverage/lcov.info produced under GITHUB_ACTIONS=true).