From af4f4abb5d3269559011a0963d1d52596b689058 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Fri, 5 Jan 2024 10:18:34 +0100 Subject: [PATCH] ci: upload test coverage to Codecov (#556) --- .github/workflows/test.yml | 5 ++++- README.md | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3e9b90c..96c6c4f2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,10 @@ jobs: - name: Run tests run: | go vet ./... - go test $(go list ./... | grep -v e2e) -v + go test -v -race -coverprofile=coverage.txt $(go list ./... | grep -v e2e) + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 deploy-manifests: name: Check deployment manifests diff --git a/README.md b/README.md index 5f596cbf..4223d945 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Container Storage Interface driver for Hetzner Cloud [![GitHub Actions status](https://github.com/hetznercloud/csi-driver/workflows/Run%20tests/badge.svg)](https://github.com/hetznercloud/csi-driver/actions) +[![codecov](https://codecov.io/github/hetznercloud/csi-driver/graph/badge.svg?token=OHFN24A0sR)](https://codecov.io/github/hetznercloud/csi-driver/tree/main) This is a [Container Storage Interface](https://github.com/container-storage-interface/spec) driver for Hetzner Cloud enabling you to use ReadWriteOnce Volumes within Kubernetes & other Container