Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from deprecated Codecov Ruby gem #610

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- name: Set up Git repository
uses: actions/checkout@main
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@70da3bbf44ac06db1b0547ce2acc9380a5270d1e # v1.175.0
Expand All @@ -27,3 +27,10 @@ jobs:

- name: Run RuboCop
run: bundle exec rubocop -D lib/

- name: Upload coverage results
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1
with:
files: coverage/coverage.xml
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ source "https://rubygems.org"

group :test, :development do
gem "benchmark-ips"
gem "codecov", :require => false
gem "minitest"
gem "rake"
gem "rubocop"
gem "simplecov-cobertura", :require => false
end

group :development do
Expand Down
7 changes: 4 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ GEM
ast (2.4.2)
benchmark-ips (2.13.0)
childprocess (5.0.0)
codecov (0.6.0)
simplecov (>= 0.15, < 0.22)
docile (1.4.0)
iniparse (1.5.0)
json (2.7.1)
Expand Down Expand Up @@ -40,6 +38,9 @@ GEM
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (2.1.0)
rexml
simplecov (~> 0.19)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
unicode-display_width (2.5.0)
Expand All @@ -49,11 +50,11 @@ PLATFORMS

DEPENDENCIES
benchmark-ips
codecov
minitest
overcommit
rake
rubocop
simplecov-cobertura

BUNDLED WITH
2.3.5
7 changes: 3 additions & 4 deletions test/helpers.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# frozen_string_literal: true

# if we're running the tests on the CI, generate a codecov coverage report
# if we're running the tests on the CI, generate a coverage report
if ENV["CI"]
require "simplecov"
require "simplecov-cobertura"
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
SimpleCov.start

require "codecov"
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

require "digest/sha1"
Expand Down
Loading