Skip to content

Commit 8f7e9cf

Browse files
authored
Add codecov/test-results-action (#260)
1 parent bc404d9 commit 8f7e9cf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ jobs:
4646
- name: Create folder for test artifacts
4747
run: mkdir -p test_artifacts
4848
- name: test
49-
run: cd build && ctest --output-on-failure
49+
run: cd build && ctest --output-on-failure --output-junit junit.xml
50+
- name: Upload test results to Codecov
51+
if: ${{ !cancelled() }}
52+
uses: codecov/test-results-action@v1
53+
with:
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
fail_ci_if_error: true
5056
- name: run examples
5157
run: ./run_examples.sh "192.168.56.101" 1
5258
- name: install gcovr

0 commit comments

Comments
 (0)