diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dca7ccdf81..5ec58b39e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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: