Skip to content

Commit

Permalink
build: use codeclimate for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
irphilli committed Apr 20, 2021
1 parent 0b6e811 commit 36c722d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/ruby-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,10 @@ jobs:
run: bundle install
- name: Run tests
run: bundle exec rake test
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
- name: Upload Coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage/lcov/tracker_api.lcov
flag-name: run-${{ matrix.ruby-version }}
parallel: true

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
coverageLocations: ${{github.workspace}}/coverage/.resultset.json:simplecov
if: matrix.ruby-version == '2.7'
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ source 'https://rubygems.org'
gemspec

gem 'simplecov', require: false, group: :test
gem 'simplecov-lcov', require: false, group: :test
3 changes: 0 additions & 3 deletions test/minitest_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'simplecov'
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start

require 'minitest/byebug' if ENV['DEBUG']
Expand Down

0 comments on commit 36c722d

Please sign in to comment.