From 152051cfdd04a617204618665d20a783d22852dc Mon Sep 17 00:00:00 2001 From: Alexander Alten Date: Fri, 16 Oct 2026 18:59:36 +0200 Subject: [PATCH] ci: publish coverage summary and profile; drop retired Go Report badge --- .github/workflows/ci.yml | 24 +++++++++++++++++++++++- README.md | 1 - 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12964af6..4e062590 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,7 +90,29 @@ jobs: run: mkdir -p "$GOCACHE" - name: Enforce coverage floor - run: bash hack/check_coverage.sh 45 + run: bash hack/check_coverage.sh 45 | tee coverage.txt + + - name: Write coverage summary + if: always() + run: | + if [ -f coverage.out ]; then + total=$(go tool cover -func=coverage.out | awk '/^total:/ {print $3}') + { + echo "## Go coverage" + echo "" + echo "Total statement coverage (gated packages): **${total}**" + } >> "$GITHUB_STEP_SUMMARY" + fi + + - name: Upload coverage profile + if: always() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 + with: + name: go-coverage + path: | + coverage.out + coverage.txt + if-no-files-found: ignore helm-lint: diff --git a/README.md b/README.md index 28089324..286cd303 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,6 @@ limitations under the License. [![Release](https://img.shields.io/github/v/release/KafScale/platform?include_prereleases&sort=semver)](https://github.com/KafScale/platform/releases) [![GHCR Broker](https://img.shields.io/badge/ghcr.io-kafscale--broker-blue)](https://github.com/KafScale/platform/pkgs/container/kafscale-broker) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE) -[![Go Report Card](https://img.shields.io/badge/go%20report-A%2B-brightgreen)](https://goreportcard.com/report/github.com/KafScale/platform) KafScale is a Kafka-protocol compatible streaming platform built around a simple premise: **durable logs belong in object storage, not in stateful brokers**.