Skip to content

Commit

Permalink
ci: fix codecov uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
q9f committed Dec 17, 2024
1 parent fcc9ad5 commit 8c21c2f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ jobs:
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
16 changes: 8 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
source "https://rubygems.org"

group :test, :development do
gem "bundler", "~> 2.2"
gem "codecov", "~> 0.6"
gem "pry", "~> 0.14"
gem "rake", "~> 13.0"
gem "rdoc", "~> 6.4"
gem "rspec", "~> 3.11"
gem "rufo", "~> 0.13"
gem "simplecov", "~> 0.21"
gem "bundler", "~> 2.6"
gem "pry", "~> 0.15"
gem "rake", "~> 13.2"
gem "rdoc", "~> 6.9"
gem "rspec", "~> 3.13"
gem "rufo", "~> 0.18"
gem "simplecov", "~> 0.22"
gem "simplecov-cobertura", "~> 2.1"
gem "yard", "~> 0.9"
end

Expand Down
7 changes: 3 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# use the local version of the code instead of a globally installed gem
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)

# only run coverage reports on github actions
if ENV["COVERAGE"]
if ENV["COVERAGE"] or ENV["CI"]
require "simplecov"
require "simplecov-cobertura"
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
SimpleCov.start
require "codecov"
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

require "eth"
Expand Down

0 comments on commit 8c21c2f

Please sign in to comment.