From 5766a248e82bbeb3327a9c38757a5ae74fe3c2f5 Mon Sep 17 00:00:00 2001 From: Max Milton Date: Sat, 13 Jul 2024 10:39:41 +0900 Subject: [PATCH] chore: Verify codeclimate test-reporter bin in CI --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01b95f6..3388556 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: