Skip to content

Replace codecov gem with codecov/codecov-action#161

Merged
mateusdeap merged 9 commits intorailsbump:mainfrom
JuanVqz:feature/replace-codecov-gem-with-action
Apr 9, 2026
Merged

Replace codecov gem with codecov/codecov-action#161
mateusdeap merged 9 commits intorailsbump:mainfrom
JuanVqz:feature/replace-codecov-gem-with-action

Conversation

@JuanVqz
Copy link
Copy Markdown
Member

@JuanVqz JuanVqz commented Apr 9, 2026

Summary

  • Remove deprecated codecov gem (archived, no longer maintained)
  • Add codecov/codecov-action@v5 step in CI workflow to upload coverage reports
  • Uses the existing CODECOV_TOKEN secret — no new configuration needed
  • SimpleCov still generates coverage data; only the upload mechanism changes

Merge order: #159#160#161

Our code coverage is not that bad

All Files ( 87.11% covered at 18.71 hits/line )

The following need some love:

File % covered Lines Relevant Lines Lines covered Lines missed Avg. Hits / Line
app/services/compats/checks/dependency_subsets_check.rb 35.71 % 29 14 5 9 0.36
app/services/compats/checks/rails_gems_check.rb 37.50 % 45 16 6 10 0.38

JuanVqz added 7 commits April 8, 2026 15:51
CGI.parse was removed in Ruby 4.0, causing VCR 6.3.1 to fail.
Unmaintained since 2022 and incompatible with Ruby 4.0 (C extension).
Ruby 4.0 ships with the debug gem as a built-in replacement.
Its dependency rouge uses CGI.parse which is removed in Ruby 4.0.
Rails built-in error pages are sufficient for development.
faraday, faraday_middleware, faraday-multipart, and faraday-retry were
listed explicitly but never used directly in app code. Octokit pulls in
faraday transitively via sawyer. Removing the explicit pins allows
faraday to resolve to 2.x (from 1.x), dropping the deprecated
faraday_middleware and several unused adapter gems.
The codecov gem is deprecated and archived. Replace it with the official
Codecov GitHub Action which picks up SimpleCov's coverage output and
uploads it using the existing CODECOV_TOKEN secret.
@JuanVqz JuanVqz force-pushed the feature/replace-codecov-gem-with-action branch from 48b36ca to 9b9dded Compare April 9, 2026 05:13
CI runs on ubuntu (x86_64-linux) but lockfiles only had arm64-darwin-25.
@JuanVqz JuanVqz self-assigned this Apr 9, 2026
@JuanVqz JuanVqz requested a review from a team April 9, 2026 05:17
Copy link
Copy Markdown
Contributor

@jeremysmithco jeremysmithco left a comment

Choose a reason for hiding this comment

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

Nice! 👍

@mateusdeap mateusdeap merged commit 79463bb into railsbump:main Apr 9, 2026
2 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