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