Skip to content

Commit

Permalink
Merge pull request #147 from ProductPlan/use-codeclimate-coverage
Browse files Browse the repository at this point in the history
build: use codeclimate for coverage
  • Loading branch information
irphilli authored Apr 20, 2021
2 parents 74a0907 + 289c7e3 commit 2c79d01
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 23 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'
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
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 2c79d01

Please sign in to comment.