Skip to content

Commit

Permalink
Update codecov CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hbiede committed Jun 4, 2024
1 parent e9e0eb3 commit 3d601d3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
run: bundle exec rake
shell: bash
- name: Upload Test Coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
8 changes: 5 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -49,9 +50,10 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
codecov
rake
rubocop
simplecov
simplecov-cobertura
test-unit (= 3.4.0)

BUNDLED WITH
Expand Down
4 changes: 2 additions & 2 deletions tests/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3d601d3

Please sign in to comment.