From acab4883010eab5d8f9b7a1c2b71f891cc7f3bd0 Mon Sep 17 00:00:00 2001 From: dblock Date: Tue, 20 Aug 2024 10:58:17 -0400 Subject: [PATCH] Added CODECOV_TOKEN. Signed-off-by: dblock --- .github/workflows/test.yml | 4 +++- Gemfile | 2 +- Gemfile.lock | 7 ++++--- spec/support/codecov.rb | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2c3b1d4..c7a10c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,4 +16,6 @@ jobs: bundle install bundle exec rake spec - name: Upload Coverage Report - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/Gemfile b/Gemfile index 84592cb..d011c3d 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,6 @@ source 'http://rubygems.org' gem 'activesupport' gem 'chronic' -gem 'codecov' gem 'dotiw' gem 'faraday' gem 'faraday-http-cache' @@ -19,6 +18,7 @@ gem 'rubocop-rake' gem 'rubocop-rspec' gem 'ruby-progressbar' gem 'simplecov' +gem 'simplecov-cobertura' group :test do gem 'rake', '~> 13' diff --git a/Gemfile.lock b/Gemfile.lock index 2fd8bf3..3aec9b9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -17,8 +17,6 @@ GEM base64 (0.2.0) bigdecimal (3.1.5) chronic (0.10.2) - codecov (0.6.0) - simplecov (>= 0.15, < 0.22) concurrent-ruby (1.2.2) connection_pool (2.4.1) crack (0.4.5) @@ -110,6 +108,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) strscan (3.1.0) @@ -129,7 +130,6 @@ PLATFORMS DEPENDENCIES activesupport chronic - codecov dotiw faraday faraday-http-cache @@ -146,6 +146,7 @@ DEPENDENCIES rubocop-rspec ruby-progressbar simplecov + simplecov-cobertura vcr webmock diff --git a/spec/support/codecov.rb b/spec/support/codecov.rb index 853ea36..4ccb424 100644 --- a/spec/support/codecov.rb +++ b/spec/support/codecov.rb @@ -1,2 +1,2 @@ -require 'codecov' -SimpleCov.formatter = SimpleCov::Formatter::Codecov +require 'simplecov-cobertura' +SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter