From 22c804b611c8438a93112d18509016e2478519e1 Mon Sep 17 00:00:00 2001 From: 2pk03 Date: Sat, 17 Oct 2026 10:40:08 +0200 Subject: [PATCH] CI: upload Go coverage to Codecov, add codecov and Go Reference badges --- .github/workflows/ci.yml | 8 ++++++++ README.md | 2 ++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86b9d222..9bdc8c73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,6 +104,14 @@ jobs: } >> "$GITHUB_STEP_SUMMARY" fi + - name: Upload coverage to Codecov + if: always() && hashFiles('coverage.out') != '' + uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5 + with: + files: coverage.out + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false + - name: Upload coverage profile if: always() uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 diff --git a/README.md b/README.md index 286cd303..0d9e9962 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ limitations under the License. **Kafka-compatible streaming that keeps your log in S3. Stateless brokers, standard Kafka clients, Apache 2.0.** [![CI](https://github.com/KafScale/platform/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/KafScale/platform/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/KafScale/platform/graph/badge.svg)](https://codecov.io/gh/KafScale/platform) +[![Go Reference](https://pkg.go.dev/badge/github.com/KafScale/platform.svg)](https://pkg.go.dev/github.com/KafScale/platform) [![CodeQL](https://img.shields.io/badge/codeql-enabled-2ea44f?logo=github)](https://github.com/KafScale/platform/security/code-scanning) [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/KafScale/platform/badge)](https://securityscorecards.dev/viewer/?uri=github.com/KafScale/platform) [![Release](https://img.shields.io/github/v/release/KafScale/platform?include_prereleases&sort=semver)](https://github.com/KafScale/platform/releases)