Skip to content

Commit

Permalink
fix: use simplecov-cobertura for coverage formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
higebu committed Sep 2, 2024
1 parent 1679234 commit 31bf554
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions spec/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion vagrant-vyos.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 31bf554

Please sign in to comment.