File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ jobs:
203203 - name : Run tests
204204 id : test
205205 working-directory : build/tests
206- run : ./test_libdisplaydevice --gtest_color=yes
206+ run : ./test_libdisplaydevice --gtest_color=yes --gtest_output=xml:test_results.xml
207207
208208 - name : Generate gcov report
209209 id : test_report
@@ -229,7 +229,9 @@ jobs:
229229 uses : actions/upload-artifact@v4
230230 with :
231231 name : coverage-${{ matrix.os }}
232- path : build/coverage.xml
232+ path : |
233+ build/coverage.xml
234+ build/tests/test_results.xml
233235 if-no-files-found : error
234236
235237 - name : Move Artifacts
@@ -279,6 +281,16 @@ jobs:
279281 - name : Debug coverage file
280282 run : cat _coverage/coverage.xml
281283
284+ - name : Upload test results to Codecov
285+ uses : codecov/test-results-action@v1
286+ with :
287+ disable_search : true
288+ fail_ci_if_error : true
289+ files : ./_coverage/tests/test_results.xml
290+ flags : ${{ matrix.flag }}
291+ token : ${{ secrets.CODECOV_TOKEN }}
292+ verbose : true
293+
282294 - name : Upload coverage
283295 uses : codecov/codecov-action@v5
284296 with :
You can’t perform that action at this time.
0 commit comments