diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index b16fca8c..887d4d7c 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -19,7 +19,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] - ruby: ['3.1', '3.2', '3.3'] + ruby: ['3.2', '3.3'] steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 @@ -29,13 +29,13 @@ jobs: - name: MacOs Dependencies run: | brew tap ethereum/ethereum - brew install --verbose pkg-config automake autogen ethereum solidity + brew install --verbose pkg-config automake autogen geth solidity if: startsWith(matrix.os, 'macOS') - name: Ubuntu Dependencies run: | sudo add-apt-repository -y ppa:ethereum/ethereum sudo apt-get update - sudo apt-get install ethereum solc libyaml-dev + sudo apt-get install geth solc if: startsWith(matrix.os, 'Ubuntu') - name: Run Geth run: | @@ -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..c74afce5 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.4" + 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"