From 31bf5544d5470f9516e3fbe91e60321fa4e21092 Mon Sep 17 00:00:00 2001 From: Yuya Kusakabe Date: Mon, 2 Sep 2024 16:45:15 +0900 Subject: [PATCH] fix: use simplecov-cobertura for coverage formatter --- .github/workflows/test.yml | 3 ++- spec/helper.rb | 4 ++-- vagrant-vyos.gemspec | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1aa3e20..ebb0ab2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,9 +13,10 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: 3.3 - - name: Test run: | bundle config path vendor/bundle bundle install --jobs 4 --retry 3 bundle exec rake spec + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 diff --git a/spec/helper.rb b/spec/helper.rb index c5483ac..baf8a65 100644 --- a/spec/helper.rb +++ b/spec/helper.rb @@ -2,6 +2,6 @@ SimpleCov.start if ENV['CI'] == 'true' - require 'codecov' - SimpleCov.formatter = SimpleCov::Formatter::Codecov + require 'simplecov-cobertura' + SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter end diff --git a/vagrant-vyos.gemspec b/vagrant-vyos.gemspec index c3e38a2..81550ae 100644 --- a/vagrant-vyos.gemspec +++ b/vagrant-vyos.gemspec @@ -22,5 +22,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake" spec.add_development_dependency "rspec", "~> 3.4" spec.add_development_dependency "simplecov" - spec.add_development_dependency "codecov" + spec.add_development_dependency 'simplecov-cobertura' end