From 8c67a5bb9993c7f59d39c3094737f3714db5b9fc Mon Sep 17 00:00:00 2001 From: Boris Glimcher Date: Fri, 4 Nov 2022 14:24:57 +0200 Subject: [PATCH] ci: add coverage badge Signed-off-by: Boris Glimcher --- .github/workflows/go.yml | 5 +---- README.md | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 77a5669..e42792f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -28,10 +28,7 @@ jobs: run: go build -v ./... - name: Test - run: go test -v ./... - - - name: Run coverage - run: go test -race -coverprofile=coverage.out -covermode=atomic + run: go test -race -coverprofile=coverage.out -covermode=atomic -v ./... - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 \ No newline at end of file diff --git a/README.md b/README.md index 8e1b21e..21eea39 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Linters](https://github.com/opiproject/goopicsi/actions/workflows/linters.yml/badge.svg)](https://github.com/opiproject/goopicsi/actions/workflows/linters.yml) [![Go](https://github.com/opiproject/goopicsi/actions/workflows/go.yml/badge.svg)](https://github.com/opiproject/goopicsi/actions/workflows/go.yml) [![License](https://img.shields.io/github/license/opiproject/goopicsi?style=flat-square&color=blue&label=License)](https://github.com/opiproject/goopicsi/blob/master/LICENSE) +[![codecov](https://codecov.io/gh/opiproject/goopicsi/branch/main/graph/badge.svg)](https://codecov.io/gh/opiproject/goopicsi) [![Last Release](https://img.shields.io/github/v/release/opiproject/goopicsi?label=Latest&style=flat-square&logo=go)](https://github.com/opiproject/goopicsi/releases) A Container Storage Interface (CSI) library, client, and other helpful utilities created with Go for OPI