diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07cb4e70..f43fb81e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['2.5.3', '2.6.1'] + ruby-version: ['3.1.4', '3.2.3', '3.3.0'] services: mysql: image: mysql:5.6 @@ -61,3 +61,8 @@ jobs: run: | sed -i '/^--tag/d' .rspec bundle exec rspec + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/nose.gemspec b/nose.gemspec index 5c7b5d5c..ccb403f3 100644 --- a/nose.gemspec +++ b/nose.gemspec @@ -36,8 +36,7 @@ Gem::Specification.new do |s| # Required for MongoDB backend s.add_dependency 'mongo', '>= 2.14', '< 2.20' - s.add_development_dependency 'codecov', '~> 0.4.3' - s.add_development_dependency 'fakefs', '~> 1.3.2' + s.add_development_dependency 'fakefs', '~> 2.5.0' s.add_development_dependency 'memory_profiler', '~> 1.0.0' s.add_development_dependency 'pry-byebug', '~> 3.9.0' s.add_development_dependency 'pry-doc', '~> 1.1.0' @@ -47,7 +46,8 @@ Gem::Specification.new do |s| s.add_development_dependency 'rspec-core', '~> 3.10.0' s.add_development_dependency 'rspec-collection_matchers', '~> 1.2.0', '>= 1.1.0' s.add_development_dependency 'ruby-prof', '~> 1.4.2' - s.add_development_dependency 'simplecov', '~> 0.21.2' + s.add_development_dependency 'simplecov', '~> 0.22.0' + s.add_development_dependency 'simplecov-cobertura', '~> 2.1.0' s.add_development_dependency 'yard', '~> 0.9.4' # Below for MRI only (TODO JRuby gemspec) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b6b89d3e..490a2385 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,8 +8,8 @@ require 'simplecov' SimpleCov.start -require 'codecov' -SimpleCov.formatter = SimpleCov::Formatter::Codecov +require 'simplecov-cobertura' +SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter require 'rspec/collection_matchers' require 'fakefs/safe'