From 177af0f7a37755acec99bfa6ff2602ed86e15f4f Mon Sep 17 00:00:00 2001 From: Onur Cinar Date: Wed, 21 Jun 2023 19:28:21 -0700 Subject: [PATCH] Integrate codecov. Fixes #90 (#91) # Describe Request Integrate codecov. Fixes #90 # Change Type Maintenance change. --- .github/workflows/go.yml | 5 +++++ README.md | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 02ad7dd..fd1f2b3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,6 +38,11 @@ jobs: - name: Go test run: go test -v -coverprofile=coverage.out ./... + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Go coverage env: CODE_COVERAGE_THRESHOLD: 100 diff --git a/README.md b/README.md index c71cd84..5ec177d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ [![GoDoc](https://godoc.org/github.com/cinar/checker?status.svg)](https://godoc.org/github.com/cinar/checker) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) -![Go CI](https://github.com/cinar/checker/actions/workflows/go.yml/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/cinar/checker)](https://goreportcard.com/report/github.com/cinar/checker) +![Go CI](https://github.com/cinar/checker/actions/workflows/go.yml/badge.svg) +[![codecov](https://codecov.io/gh/cinar/checker/branch/main/graph/badge.svg?token=VO9BYBHJHE)](https://codecov.io/gh/cinar/checker) # Checker