diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index df2d2aa..6a4e47e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -32,7 +32,5 @@ jobs: - name: Run tests run: bundle exec rake shell: bash - - name: Upload Test Coverage - uses: codecov/codecov-action@v3 - with: - directory: ./coverage + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/Gemfile b/Gemfile index 50e0590..4be3a64 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,8 @@ source 'https://rubygems.org' -gem 'codecov', require: false, group: 'test' gem 'rake' gem 'rubocop' +gem 'simplecov', require: false, group: 'test' +gem 'simplecov-cobertura', require: false, group: 'test' gem 'test-unit', '3.4.0' diff --git a/Gemfile.lock b/Gemfile.lock index ae67542..568f170 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,8 +2,6 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.2) - codecov (0.6.0) - simplecov (>= 0.15, < 0.22) docile (1.4.0) json (2.7.1) language_server-protocol (3.17.0.3) @@ -35,6 +33,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) test-unit (3.4.0) @@ -49,9 +50,10 @@ PLATFORMS x86_64-linux DEPENDENCIES - codecov rake rubocop + simplecov + simplecov-cobertura test-unit (= 3.4.0) BUNDLED WITH diff --git a/tests/helper.rb b/tests/helper.rb index f01470c..ed68dcb 100644 --- a/tests/helper.rb +++ b/tests/helper.rb @@ -25,8 +25,8 @@ def disable_stderr end if ENV['CI'] == 'true' - require 'codecov' - SimpleCov.formatter = SimpleCov::Formatter::Codecov + require 'simplecov-cobertura' + SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter else SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter end