Skip to content

Commit 145cc0a

Browse files
authored
Add ctest to make a junit.xml for codecov
1 parent a2cd3d6 commit 145cc0a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ jobs:
5050
- name: Create folder for test artifacts
5151
run: mkdir -p test_artifacts
5252
- name: test
53-
run: cd build && ctest --output-on-failure
53+
run: cd build && ctest --output-on-failure --output-junit junit.xml
54+
- name: Upload test results to Codecov
55+
if: ${{ !cancelled() }}
56+
uses: codecov/test-results-action@v1
57+
with:
58+
token: ${{ secrets.CODECOV_TOKEN }}
5459
- name: run examples
5560
run: ./run_examples.sh "192.168.56.101" 1
5661
- name: install gcovr
@@ -62,11 +67,6 @@ jobs:
6267
with:
6368
fail_ci_if_error: true
6469
token: ${{ secrets.CODECOV_TOKEN }}
65-
- name: Upload test results to Codecov
66-
if: ${{ !cancelled() }}
67-
uses: codecov/test-results-action@v1
68-
with:
69-
token: ${{ secrets.CODECOV_TOKEN }}
7070
- name: Generate URSim log files
7171
if: always()
7272
run: |

0 commit comments

Comments
 (0)