From ab6f06e52f0b31c3ad60cb33f5b7b3181df135a6 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Thu, 7 Jan 2021 10:10:16 +0100 Subject: [PATCH] Reintroduce Codeclimate coverage and badge This reverts commit f0c76f826f52f8d1749061fd1a802bf4fc943430. There had been fixes, https://github.com/codeclimate/test-reporter/issues/413#issuecomment-749542129 --- .github/workflows/ci.yml | 11 +++++++++++ README.md | 1 + 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c00677c99..790857973 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,18 @@ jobs: gem install bundler -v '<2' bundle install --jobs 4 --retry 3 + - name: Setup Code Climate + if: matrix.ruby == '2.6' + run: | + curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + chmod +x ./cc-test-reporter + ./cc-test-reporter before-build + - name: Test continue-on-error: ${{ matrix.experimental }} run: bundle exec rake + - name: Run Code Climate Test Reporter + if: success() && matrix.ruby == '2.6' + run: ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $? + continue-on-error: true diff --git a/README.md b/README.md index 38f67bbe8..9a85b86bd 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Gem Version](https://badge.fury.io/rb/faraday.svg)](https://rubygems.org/gems/faraday) [![GitHub Actions CI](https://github.com/lostisland/faraday/workflows/CI/badge.svg)](https://github.com/lostisland/faraday/actions?query=workflow%3ACI) +[![Test Coverage](https://api.codeclimate.com/v1/badges/f869daab091ceef1da73/test_coverage)](https://codeclimate.com/github/lostisland/faraday/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/f869daab091ceef1da73/maintainability)](https://codeclimate.com/github/lostisland/faraday/maintainability) [![Gitter](https://badges.gitter.im/lostisland/faraday.svg)](https://gitter.im/lostisland/faraday?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)