Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Feb 9, 2023
1 parent ceb5f04 commit 00390b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -20,3 +20,4 @@ httpmock-record.yml

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
coverage.html
13 changes: 13 additions & 0 deletions Makefile
@@ -0,0 +1,13 @@
.PHONY: test coverage lint vet

build:
go build
lint:
go fmt $(go list ./... | grep -v /vendor/)
vet:
go vet $(go list ./... | grep -v /vendor/)
test:
go test -v -cover ./...
coverage:
go test -v -cover -coverprofile=coverage.out ./... &&\
go tool cover -html=coverage.out -o coverage.html

0 comments on commit 00390b0

Please sign in to comment.