Skip to content

Commit

Permalink
ci: Add codecov & goreports (#2)
Browse files Browse the repository at this point in the history
* ci: Add codecov integration

* test: Run test on dirs that has test

* docs: Update README.md with badges
  • Loading branch information
raeperd authored Sep 13, 2024
1 parent 35e7ac1 commit 35bd069
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
go-version-file: go.mod
- run: make build
- run: make test
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: sarisia/actions-status-discord@v1
if: always()
with:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build: download
go build -C cmd/recvcheck

test:
go test -race -coverprofile=coverage.out ./...
go test -race -coverprofile=coverage.txt .

lint:
golangci-lint run
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# recvcheck
Golang linter for check receiver type in method (WIP)
[![.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)
Golang linter for check receiver type in method

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

0 comments on commit 35bd069

Please sign in to comment.