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..811c300 100644 --- a/Gemfile +++ b/Gemfile @@ -3,5 +3,5 @@ source 'https://rubygems.org' # Specify your gem's dependencies in tracker_api.gemspec gemspec -gem 'simplecov', require: false, group: :test -gem 'simplecov-lcov', require: false, group: :test +# pinned until code climate figures out the new output format https://github.com/codeclimate/test-reporter/issues/418 +gem 'simplecov', '< 0.18', require: false, group: :test diff --git a/README.md b/README.md index 2f95bc5..d5472cb 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ [![Gem Version](https://badge.fury.io/rb/tracker_api.png)](http://badge.fury.io/rb/tracker_api) [![Build Status](https://github.com/ProductPlan/tracker_api/actions/workflows/ruby-tests.yml/badge.svg?branch=master)](https://github.com/ProductPlan/tracker_api/actions) -[![Code Climate](https://codeclimate.com/github/dashofcode/tracker_api.png)](https://codeclimate.com/github/dashofcode/tracker_api) -[![Coverage Status](https://coveralls.io/repos/github/ProductPlan/tracker_api/badge.svg?branch=master)](https://coveralls.io/github/ProductPlan/tracker_api?branch=master) +[![Maintainability](https://api.codeclimate.com/v1/badges/c4602f519cd748d53492/maintainability)](https://codeclimate.com/github/ProductPlan/tracker_api/maintainability) +[![Test Coverage](https://api.codeclimate.com/v1/badges/c4602f519cd748d53492/test_coverage)](https://codeclimate.com/github/ProductPlan/tracker_api/test_coverage) This gem allows you to easily use the [Pivotal Tracker v5 API](https://www.pivotaltracker.com/help/api/rest/v5). 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']