From 9609194a95df72c07ba19db413df256f858f6be9 Mon Sep 17 00:00:00 2001 From: xray33 Date: Sun, 11 Oct 2026 17:43:07 +0300 Subject: [PATCH] ci: add Codecov coverage reporting and badge --- .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 154e728..ecc0051 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,6 +62,13 @@ jobs: run: | go test -v -race -coverprofile=coverage.out ./... + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + files: coverage.out + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false + - name: Build Backend Binary run: | go build -v -ldflags="-X main.buildVersion=${{ github.sha }} -X main.buildCommit=${{ github.sha }}" -o bin/selfcloud ./cmd/selfcloud diff --git a/README.md b/README.md index ba11146..822b519 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Go Version](https://img.shields.io/badge/Go-1.26-00ADD8?style=flat&logo=go)](https://golang.org/) [![React Version](https://img.shields.io/badge/React-19.0-61DAFB?style=flat&logo=react)](https://react.dev/) [![CI](https://github.com/xray33/selfcloud/actions/workflows/ci.yml/badge.svg)](https://github.com/xray33/selfcloud/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/xray33/selfcloud/branch/main/graph/badge.svg)](https://codecov.io/gh/xray33/selfcloud) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) **SelfCloud** is a lightweight, high-performance, 100% ownCloud-compatible WebDAV backend server and modern Web UI written in Go and React.