From 36c722d2fa27e07a65ffbb557a54da60357968b2 Mon Sep 17 00:00:00 2001 From: Phil Phillips Date: Tue, 20 Apr 2021 12:04:35 -0500 Subject: [PATCH] build: use codeclimate for coverage --- .github/workflows/ruby-tests.yml | 22 ++++++---------------- Gemfile | 1 - test/minitest_helper.rb | 3 --- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ruby-tests.yml b/.github/workflows/ruby-tests.yml index 38b8d70..5d47e98 100644 --- a/.github/workflows/ruby-tests.yml +++ b/.github/workflows/ruby-tests.yml @@ -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/codeclimate-action@v2.7.5 + 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' diff --git a/Gemfile b/Gemfile index a2d9609..7647791 100644 --- a/Gemfile +++ b/Gemfile @@ -4,4 +4,3 @@ source 'https://rubygems.org' gemspec gem 'simplecov', require: false, group: :test -gem 'simplecov-lcov', require: false, group: :test diff --git a/test/minitest_helper.rb b/test/minitest_helper.rb index 68cae83..a20dc06 100644 --- a/test/minitest_helper.rb +++ b/test/minitest_helper.rb @@ -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']