Skip to content

Commit

Permalink
gha/cadacy: use github action to submit coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
codyps committed Oct 25, 2021
1 parent 467cd0e commit 9af5dc4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf -
- run: ./grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info
- run: bash <(curl -s https://codecov.io/bash) -f lcov.info
- run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r lcov.info
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: lcov.info

0 comments on commit 9af5dc4

Please sign in to comment.