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 0b8212b
Show file tree
Hide file tree
Showing 2 changed files with 4 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
7 changes: 1 addition & 6 deletions tests/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,4 @@ def disable_stderr
Test::Unit::AutoRunner.run(true, File.dirname(__FILE__))
end

if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
else
SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter
end
SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter

0 comments on commit 0b8212b

Please sign in to comment.