From 925b5c310e792c768253be2491ea3b49384e57c7 Mon Sep 17 00:00:00 2001 From: Nick Ficano Date: Sun, 24 May 2026 21:12:21 -0400 Subject: [PATCH] ci: upload coverage to Codecov The `go test -coverprofile=coverage.out` step is already running on the `stable` matrix entry. Upload that profile to Codecov non-blockingly. Requires CODECOV_TOKEN to be set as a repo secret. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 674721d..2fe3b92 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -93,6 +93,18 @@ jobs: retention-days: 30 if-no-files-found: ignore + # Upload Go coverage profile from the `stable` matrix entry only. + # Non-blocking so a Codecov outage cannot break CI. + - name: Upload coverage to Codecov + if: matrix.go == 'stable' + # codecov/codecov-action v6.0.1 + uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 + with: + fail_ci_if_error: false + flags: unittests + files: ./coverage.out + token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test output on failure if: failure() && hashFiles('test-output.txt') != '' uses: actions/upload-artifact@v7