Skip to content

Commit

Permalink
codecov setup
Browse files Browse the repository at this point in the history
  • Loading branch information
klobuczek committed Sep 22, 2024
1 parent 27f4c3c commit f572db6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,10 @@ jobs:
- name: Run tests
run: bundle exec rspec

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}

# - name: Run tests
# run: bundle exec rubocop
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ group 'test' do
gem 'overcommit'
gem 'codecov', require: false
gem 'simplecov', require: false
gem 'simplecov-cobertura', require: false
gem 'simplecov-html', require: false
gem 'its'
gem 'test-unit'
Expand Down
6 changes: 4 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
add_filter 'spec'
end
if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
# require 'codecov'
# SimpleCov.formatter = SimpleCov::Formatter::Codecov
require 'simplecov-cobertura'
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
end

# To run it manually via Rake
Expand Down

0 comments on commit f572db6

Please sign in to comment.