Skip to content

Commit

Permalink
Adds CodeClimate coverage report.
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Oct 15, 2019
1 parent b56357e commit 2da5860
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push]
env:
GIT_COMMIT_SHA: ${{ github.sha }}
GIT_BRANCH: ${{ github.ref }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
jobs:
linting:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,8 +37,19 @@ jobs:
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Build and test with Rake
- name: Build
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake
- name: Setup Code Climate
if: matrix.ruby == '2.6.x'
run: |
echo "GIT COMMIT SHA: ${GIT_COMMIT_SHA}"
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
run: bundle exec rake
- name: Run Code Climate Test Reporter
if: success() && matrix.ruby == '2.6.x'
run: ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?

0 comments on commit 2da5860

Please sign in to comment.