From 20595dd2d6af79173158db7eb1d76aa5c2bd24f2 Mon Sep 17 00:00:00 2001 From: Kamaleshwar Date: Sat, 5 Oct 2024 10:29:18 +0200 Subject: [PATCH] [-] updated Github workflow to push test coverage report to coveralls [-] updated README to add report card and coverage badges --- .github/workflows/go.yml | 10 ++++++++-- README.md | 4 +++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3fd364c..edacd39 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -23,5 +23,11 @@ jobs: - name: Build run: go build -v ./... - - name: Test - run: go test -v ./... + - name: Tests + run: | + go install github.com/mattn/goveralls@latest + go test -race -covermode atomic -coverprofile=covprofile ./... + - name: Send coverage + uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: covprofile diff --git a/README.md b/README.md index 2079c2c..3aaa23a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@

verifier gopher

[![](https://github.com/naughtygopher/verifier/actions/workflows/go.yml/badge.svg?branch=master)](https://github.com/naughtygopher/verifier/actions) -[![](https://godoc.org/github.com/nathany/looper?status.svg)](http://godoc.org/github.com/naughtygopher/verifier) +[![Go Reference](https://pkg.go.dev/badge/github.com/naughtygopher/verifier.svg)](https://pkg.go.dev/github.com/naughtygopher/verifier) +[![Go Report Card](https://goreportcard.com/badge/github.com/naughtygopher/verifier)](https://goreportcard.com/report/github.com/naughtygopher/verifier) +[![Coverage Status](https://coveralls.io/repos/github/naughtygopher/verifier/badge.svg?branch=master)](https://coveralls.io/github/naughtygopher/verifier?branch=master) # Verifier