Skip to content

Commit c2c97c3

Browse files
authored
Add coveralls (#16)
1 parent 3588d7f commit c2c97c3

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/go.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,11 @@ jobs:
3434
run: go build -v .
3535

3636
- name: Test
37-
run: go test -v .
37+
run: go test -v -race -covermode atomic -coverprofile=profile.cov .
38+
39+
- name: Send coverage
40+
env:
41+
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
42+
run: |
43+
go get github.com/mattn/goveralls
44+
$(go env GOPATH)/bin/goveralls -repotoken $COVERALLS_TOKEN -coverprofile=profile.cov

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![Go](https://github.com/fmenezes/codeowners/workflows/Go/badge.svg)](https://github.com/fmenezes/codeowners/actions?query=branch%3Amaster)
22
[![Go Report Card](https://goreportcard.com/badge/github.com/fmenezes/codeowners)](https://goreportcard.com/report/github.com/fmenezes/codeowners)
3+
[![Coverage](https://coveralls.io/repos/github/fmenezes/codeowners/badge.svg?branch=master)](https://coveralls.io/github/fmenezes/codeowners?branch=master)
34

45
# CODEOWNERS Decoder
56

0 commit comments

Comments
 (0)