Skip to content

Commit 35bd069

Browse files
authored
ci: Add codecov & goreports (#2)
* ci: Add codecov integration * test: Run test on dirs that has test * docs: Update README.md with badges
1 parent 35e7ac1 commit 35bd069

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/build.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
go-version-file: go.mod
1111
- run: make build
1212
- run: make test
13+
- uses: codecov/codecov-action@v4
14+
with:
15+
token: ${{ secrets.CODECOV_TOKEN }}
1316
- uses: sarisia/actions-status-discord@v1
1417
if: always()
1518
with:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build: download
77
go build -C cmd/recvcheck
88

99
test:
10-
go test -race -coverprofile=coverage.out ./...
10+
go test -race -coverprofile=coverage.txt .
1111

1212
lint:
1313
golangci-lint run

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# recvcheck
2-
Golang linter for check receiver type in method (WIP)
2+
[![.github/workflows/build.yaml](https://github.com/raeperd/recvcheck/actions/workflows/build.yaml/badge.svg)](https://github.com/raeperd/recvcheck/actions/workflows/build.yaml) [![Go Report Card](https://goreportcard.com/badge/github.com/raeperd/recvcheck)](https://goreportcard.com/report/github.com/raeperd/recvcheck) [![codecov](https://codecov.io/gh/raeperd/recvcheck/graph/badge.svg?token=fPYgEHlq1e)](https://codecov.io/gh/raeperd/recvcheck)
3+
Golang linter for check receiver type in method
34

45
## Motivtation
56
From [Go Wiki: Go Code Review Comments - The Go Programming Language](https://go.dev/wiki/CodeReviewComments#receiver-type)

0 commit comments

Comments
 (0)