diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index b16fca8c..14630d69 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -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 }} diff --git a/Gemfile b/Gemfile index fd412b1d..ba289afe 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7f5b2f35..44f4d16a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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"