From 1338c55d995671d775620906a550ceff2e5b4291 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Fri, 2 May 2025 20:31:28 -0400 Subject: [PATCH] ci(codecov): add test analytics --- .github/workflows/ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0c6d6d..18f47e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -203,7 +203,7 @@ jobs: - name: Run tests id: test working-directory: build/tests - run: ./test_libdisplaydevice --gtest_color=yes + run: ./test_libdisplaydevice --gtest_color=yes --gtest_output=xml:test_results.xml - name: Generate gcov report id: test_report @@ -229,7 +229,9 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-${{ matrix.os }} - path: build/coverage.xml + path: | + build/coverage.xml + build/tests/test_results.xml if-no-files-found: error - name: Move Artifacts @@ -279,6 +281,16 @@ jobs: - name: Debug coverage file run: cat _coverage/coverage.xml + - name: Upload test results to Codecov + uses: codecov/test-results-action@v1 + with: + disable_search: true + fail_ci_if_error: true + files: ./_coverage/tests/test_results.xml + flags: ${{ matrix.flag }} + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true + - name: Upload coverage uses: codecov/codecov-action@v5 with: