From d62f273f25d9fb7b9b8e0610534b2375f9e42368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Wed, 22 Oct 2025 09:49:58 +0200 Subject: [PATCH] ci: add support for uploading tests result in codecov --- .github/workflows/coverage.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 94e5637d32..628d6a9890 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -20,6 +20,11 @@ jobs: with: go-version: stable - name: Run coverage - run: go test -coverprofile=coverage.out -covermode=count ./... + run: go tool gotestsum --format github-actions --junitfile junit.xml -- -coverprofile=coverage.out -covermode=count ./... - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }}