Skip to content

Commit

Permalink
updated runTests actions to upload test results to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Tellicious committed Oct 26, 2024
1 parent aff3a63 commit df312d0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/runTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,18 @@ jobs:
run: cmake --build ${{github.workspace}}/build -j 10

- name: Test
run: ctest --test-dir ${{github.workspace}}/build --output-on-failure --verbose
run: CMOCKA_MESSAGE_OUTPUT=XML CMOCKA_XML_FILE=./%g.xml ctest --test-dir ${{github.workspace}}/build --output-on-failure --verbose

- name: Upload results to Codecov
- name: Upload coverage results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
plugin: gcov
flags: unitTests

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unitTests

0 comments on commit df312d0

Please sign in to comment.