Skip to content

Commit

Permalink
chore: Verify codeclimate test-reporter bin in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmilton committed Jul 13, 2024
1 parent c0304c1 commit 5766a24
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ jobs:
- name: Report coverage
if: ${{ github.repository_owner == 'maxmilton' }}
run: |
curl -Lo ./cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
chmod +x ./cc-test-reporter
./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.json coverage/lcov.info
./cc-test-reporter upload-coverage
curl -LO https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 \
-LO https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64.sha256
grep test-reporter-latest-linux-amd64 test-reporter-latest-linux-amd64.sha256 | shasum -a 256 -c -
mv test-reporter-latest-linux-amd64 test-reporter
chmod +x ./test-reporter
./test-reporter format-coverage -t lcov -o coverage/codeclimate.json coverage/lcov.info
./test-reporter upload-coverage
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
e2e:
Expand Down

0 comments on commit 5766a24

Please sign in to comment.