Skip to content

Commit

Permalink
✨ (ci): Add Codecov codecoverage analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Mar 9, 2021
1 parent f59e702 commit 3b082ce
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci-unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,21 @@ jobs:
run: |
make ut
- name: Generate Codeclimate code coverage
- name: Generate lcov code coverage
run: |
make coverage_lcov
- name: Upload Codeclimate code coverage
uses: paambaati/codeclimate-action@v2.7.5
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
debug: true
prefix: ${{github.workspace}}
coverageCommand: make coverage_lcov
coverageLocations: ${{github.workspace}}/_build_unit_tests/_coverage/coverage.info:lcov

- name: Upload Codecov code coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
bash <(curl -s https://codecov.io/bash) -f ${{github.workspace}}/_build_unit_tests/_coverage/coverage.info || echo "Codecov did not collect coverage reports"

0 comments on commit 3b082ce

Please sign in to comment.