From b179b777f2cc4f995e95c833ebe2fd2c1ab23061 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Fri, 5 Jun 2026 09:24:04 +0200 Subject: [PATCH] ci: upload test results to codecov Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a6a7bd9b8628..dc2bb8899e2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -148,14 +148,24 @@ jobs: TEST_REPORT_SUFFIX: "-${{ env.TESTREPORTS_NAME }}" TESTPKGS: "${{ matrix.pkg }}" - - name: Send to Codecov + name: Upload coverage to Codecov if: always() uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 with: directory: ./bin/testreports flags: integration token: ${{ secrets.CODECOV_TOKEN }} - disable_file_fixes: true + disable_file_fixes: true # needed for Go language https://docs.codecov.com/docs/fixing-reports + - + name: Upload test results to Codecov + if: always() + uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 + with: + report_type: test_results + directory: ./bin/testreports + flags: integration + token: ${{ secrets.CODECOV_TOKEN }} + disable_file_fixes: true # needed for Go language https://docs.codecov.com/docs/fixing-reports - name: Generate annotations if: always() @@ -225,15 +235,26 @@ jobs: "-covermode" "atomic" ${{ env.TESTFLAGS }} shell: bash - - name: Send to Codecov + name: Upload coverage to Codecov + if: always() + uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 + with: + directory: ${{ env.TESTREPORTS_DIR }} + env_vars: RUNNER_OS + flags: unit + token: ${{ secrets.CODECOV_TOKEN }} + disable_file_fixes: true # needed for Go language https://docs.codecov.com/docs/fixing-reports + - + name: Upload test results to Codecov if: always() uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 with: + report_type: test_results directory: ${{ env.TESTREPORTS_DIR }} env_vars: RUNNER_OS flags: unit token: ${{ secrets.CODECOV_TOKEN }} - disable_file_fixes: true + disable_file_fixes: true # needed for Go language https://docs.codecov.com/docs/fixing-reports - name: Generate annotations if: always()