non-production: set up codecov in this repo#129
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
There was a problem hiding this comment.
Pull request overview
Sets up test coverage reporting for this Ruby/RSpec repo so CI can upload an LCOV report to Codecov via the shared ruby-test-matrix reusable workflow.
Changes:
- Adds SimpleCov initialization to RSpec via a new
spec/simplecov_helper.rb(LCOV on GitHub Actions, HTML locally). - Adds
simplecov/simplecov-lcovdependencies (Gemfile + appraisal gemfiles) and updatesGemfile.lock. - Updates CI workflow to pass secrets to the reusable workflow and ignores
coverage/in git.
Reviewed changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
spec/spec_helper.rb |
Loads SimpleCov helper before requiring RSpec/app code. |
spec/simplecov_helper.rb |
Configures SimpleCov output (LCOV on CI, HTML locally). |
Gemfile |
Adds SimpleCov gems to dev dependencies. |
Gemfile.lock |
Locks SimpleCov-related dependencies. |
gemfiles/rails_7_0.gemfile |
Adds SimpleCov gems for the Rails 7.0 appraisal. |
gemfiles/rails_7_1.gemfile |
Adds SimpleCov gems for the Rails 7.1 appraisal. |
gemfiles/rails_7_2.gemfile |
Adds SimpleCov gems for the Rails 7.2 appraisal. |
gemfiles/rails_8_0.gemfile |
Adds SimpleCov gems for the Rails 8.0 appraisal. |
.gitignore |
Ignores generated coverage artifacts. |
.github/workflows/pipeline.yml |
Passes secrets into the reusable CI workflow. |
💡 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 ☂️ |
ishakun
approved these changes
Jul 14, 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.1.2: 157 examples, 0 failures, Line Coverage: 93.54% (449/480). Verified GITHUB_ACTIONS=true run produces coverage/lcov.info.
No codecov.yml added since coverage is above 80%.