Skip to content

Commit

Permalink
fix: code climate test reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
kristof-mattei committed Feb 15, 2022
1 parent 51a952c commit 9c58b72
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,22 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: reports/lcov.info

- name: Setup Code Climate test-reporter
shell: bash
run: |
# download test reporter as a static binary
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- name: Run code-climate-test-reporter
shell: bash
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
run: |
./cc-test-reporter before-build
./cc-test-reporter format-coverage reports/lcov.info --input-type lcov --output reports/codeclimate.json
./cc-test-reporter after-build --input reports/codeclimate.json
cargo-clippy-and-report:
name: Cargo clippy (and report)
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9c58b72

Please sign in to comment.