From 3a1b0560ab05873bd5de613fcac380224fbfbbae Mon Sep 17 00:00:00 2001 From: steinfletcher Date: Thu, 3 Sep 2026 13:21:53 +0100 Subject: [PATCH] Publish test coverage to Coveralls and show a coverage badge The stable-Go test job uploads the coverage profile that make test already writes. Coveralls' action needs only the workflow's GITHUB_TOKEN and registers the repository on the first upload. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/ci.yml | 7 +++++++ README.md | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 538f020..6a40f60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,13 @@ jobs: - name: Run tests run: make test + - name: Upload coverage to Coveralls + if: matrix.go == 'stable' + uses: coverallsapp/github-action@v2 + with: + file: coverage.out + format: golang + - name: Run example tests run: make test-examples diff --git a/README.md b/README.md index 1ae5f85..4d9e9bd 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@

Go Reference Build Status +Coverage Status Mentioned in Awesome Go