Skip to content

Commit

Permalink
use gcovr-action to send and generate code coverage report to Cover…
Browse files Browse the repository at this point in the history
…alls
  • Loading branch information
threeal committed Jan 1, 2023
1 parent 0dab30f commit db4a15b
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,11 @@ jobs:
if: steps.setup_testspace.outcome == 'success'
run: testspace [Tests]"build/Testing/*/Test.xml"

- name: Install gcovr
run: pip3 install gcovr

- name: Generate code coverage info
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: gcovr --gcov-executable 'llvm-cov gcov' -e 'build/*' --coveralls build/coverage.json

- name: Send code coverage info to Coveralls
run: curl -v -F json_file=@build/coverage.json https://coveralls.io/api/v1/jobs
- name: Generate and send code coverage report to Coveralls
uses: threeal/gcovr-action@v0.1.0
with:
coveralls-send: true
coveralls-repo-token: ${{ secrets.COVERALLS_REPO_TOKEN }}

check-warning:
runs-on: ubuntu-latest
Expand Down

0 comments on commit db4a15b

Please # to comment.