Skip to content

Commit

Permalink
Merge pull request #1757 from tvdeyen/fix-codeclimate-test-coverage
Browse files Browse the repository at this point in the history
Fix test coverage reporting
  • Loading branch information
tvdeyen authored Mar 22, 2020
2 parents 69bc84e + aa78e2c commit b55ed01
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
DB_HOST: '127.0.0.1'
RAILS_ENV: test
RAILS_VERSION: ${{ matrix.rails }}
CC_TEST_REPORTER_ID: bca4349e32f97919210ac8a450b04904b90683fcdd57d65a22c0f5065482bc22
services:
postgres:
image: postgres:11
Expand Down Expand Up @@ -89,15 +88,12 @@ jobs:
- name: Prepare database
run: |
bundle exec rake alchemy:spec:prepare
- name: Install code climate test reporter
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 with RSpec
run: |
bundle exec rspec
./cc-test-reporter after-build --exit-code $?
- name: Run tests & publish code coverage
uses: paambaati/codeclimate-action@v2.5.5
env:
CC_TEST_REPORTER_ID: bca4349e32f97919210ac8a450b04904b90683fcdd57d65a22c0f5065482bc22
with:
coverageCommand: bundle exec rspec
- uses: actions/upload-artifact@master
if: failure()
with:
Expand Down

0 comments on commit b55ed01

Please sign in to comment.