From 685b5b3d35aa57e8dba16ce2369721af569da9af Mon Sep 17 00:00:00 2001 From: Ben Grewell Date: Thu, 6 Aug 2026 14:40:15 +0000 Subject: [PATCH] Upload coverage reports to Codecov from CI The CI workflow computed a coverage profile but never uploaded it, so the Codecov badge kept showing stale data from long before the current test suite existed. Add the codecov-action upload step using the repository's existing CODECOV_TOKEN secret; upload failures are non-fatal so Codecov outages cannot break the build. --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26c184a..e7e82c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,3 +41,10 @@ jobs: - name: Coverage run: go test -count=1 -coverprofile=coverage.out -coverpkg=./... ./... && go tool cover -func=coverage.out | tail -1 + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + files: coverage.out + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false