From 81b7ac3390eb07e23f065115254e44e08f5af167 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Fri, 2 May 2025 20:09:56 -0400 Subject: [PATCH] ci(codecov): add test analytics --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5f89958..33afa7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,8 +70,23 @@ jobs: --verbose \ --color=yes \ --cov=src \ + --junitxml=junit.xml \ + -o junit_family=legacy \ tests + - name: Upload test results to Codecov + # any except canceled or skipped + if: >- + always() && + (steps.test.outcome == 'success' || steps.test.outcome == 'failure') && + startsWith(github.repository, 'LizardByte/') + uses: codecov/test-results-action@v1 + with: + fail_ci_if_error: true + files: junit.xml + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true + - name: Upload coverage # any except canceled or skipped if: >- @@ -82,6 +97,7 @@ jobs: with: fail_ci_if_error: true token: ${{ secrets.CODECOV_TOKEN }} + verbose: true - name: Create/Update GitHub Release if: >-