Skip to content

Commit

Permalink
Fix test coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Mar 22, 2020
1 parent 69bc84e commit e9bc9c0
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,7 @@ jobs:
DB_HOST: '127.0.0.1'
RAILS_ENV: test
RAILS_VERSION: ${{ matrix.rails }}
CC_TEST_REPORTER_ID: bca4349e32f97919210ac8a450b04904b90683fcdd57d65a22c0f5065482bc22
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
services:
postgres:
image: postgres:11
Expand Down Expand Up @@ -89,15 +89,11 @@ 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
with:
coverageCommand: bundle exec rspec
debug: true
- uses: actions/upload-artifact@master
if: failure()
with:
Expand Down

0 comments on commit e9bc9c0

Please sign in to comment.