Skip to content

Commit 545d9ce

Browse files
committed
ci: Change step to upload coverage to Codecov
1 parent 94bb34a commit 545d9ce

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/ubuntu-codecov.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,17 @@ jobs:
4848
run: cd build && make
4949
- name: Run Unit Test
5050
run: /home/runner/work/RosettaStone/RosettaStone/build/bin/UnitTests
51+
- name: Collect coverage report
52+
run: |
53+
GCOV_TOOL="$(command -v gcov-${{ matrix.version }})"
54+
lcov --gcov-tool "${GCOV_TOOL}" --directory build --capture --output-file build/coverage.info
55+
lcov --gcov-tool "${GCOV_TOOL}" --remove build/coverage.info '/usr/*' '*/Tests/*' '*/build/*' --output-file build/coverage.info.cleaned
5156
- name: Upload Coverage Reports to Codecov
52-
uses: codecov/codecov-action@v4
53-
env:
54-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
57+
uses: codecov/codecov-action@v5
58+
with:
59+
fail_ci_if_error: true
60+
files: ./build/coverage.info.cleaned
61+
flags: unittests
62+
name: ubuntu-codecov
63+
token: ${{ secrets.CODECOV_TOKEN }}
64+
verbose: true

0 commit comments

Comments
 (0)