Skip to content

Commit

Permalink
ci: fix codecov uploader (#302)
Browse files Browse the repository at this point in the history
* ci: fix codecov uploader

* ci: fix codecov uploader

* ci: fix codecov uploader
  • Loading branch information
q9f authored Dec 17, 2024
1 parent fcc9ad5 commit 78ebb97
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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.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

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 78ebb97

Please sign in to comment.