From bcbe3380d799dfeeb59a4e77161d1a92e9312597 Mon Sep 17 00:00:00 2001 From: Amal Francis Date: Sun, 28 May 2023 22:34:35 +0530 Subject: [PATCH] add coverage --- .github/workflows/test.yml | 3 +++ Makefile | 2 +- README.md | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f004ffd..9bee83c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,3 +16,6 @@ jobs: uses: actions/checkout@v2 - name: Test run: make test + - uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov diff --git a/Makefile b/Makefile index 6df3115..04ec11a 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,6 @@ vet: go vet ./... test: - go test ./... -v + go test ./... -v -coverprofile=profile.cov build: fmt vet test diff --git a/README.md b/README.md index 5464576..3f17d7a 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ maildir ![Build Status](https://github.com/amalfra/maildir/actions/workflows/test.yml/badge.svg?branch=main) [![GoDoc](https://godoc.org/github.com/amalfra/maildir/v3?status.svg)](https://godoc.org/github.com/amalfra/maildir/v3) [![Go Report Card](https://goreportcard.com/badge/github.com/amalfra/maildir/v3)](https://goreportcard.com/report/github.com/amalfra/maildir/v3) +[![Coverage Status](https://coveralls.io/repos/github/amalfra/maildir/badge.svg?branch=main)](https://coveralls.io/github/amalfra/maildir?branch=main) A go package for reading and writing messages in the maildir format.