Skip to content

non-production: set up codecov in this repo#39

Merged
dep merged 3 commits into
masterfrom
codeCovSetup
Jul 21, 2026
Merged

non-production: set up codecov in this repo#39
dep merged 3 commits into
masterfrom
codeCovSetup

Conversation

@dep

@dep dep commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add secrets: inherit to the shared ruby-test-matrix workflow call so the org CODECOV_TOKEN reaches the Codecov upload step
  • Add simplecov and simplecov-lcov dev dependencies (Gemfile, per this repo's convention) with a new spec/simplecov_helper.rb, required first in spec/spec_helper.rb, emitting coverage/lcov.info when GITHUB_ACTIONS is set
  • Add repo-level codecov.yml with target: auto / threshold: 1% for project and patch statuses

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).

- 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%)
@dep
dep marked this pull request as ready for review July 14, 2026 13:58
@dep
dep requested a review from a team as a code owner July 14, 2026 13:58
@dep
dep requested review from Copilot and ttstarck July 14, 2026 13:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.info when running under GitHub Actions to support Codecov uploads.
  • Add a minimal codecov.yml to 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.

Comment thread .github/workflows/pipeline.yml
Comment thread spec/spec_helper.rb
@codecov

codecov Bot commented Jul 14, 2026

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 ☂️

@dep
dep merged commit 7434f33 into master Jul 21, 2026
49 checks passed
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.

3 participants