chore: add linter.
This commit is contained in:
10
Makefile
10
Makefile
@ -1,9 +1,15 @@
|
||||
.PHONY: default build image
|
||||
.PHONY: default build image check
|
||||
|
||||
default: build
|
||||
default: check test build
|
||||
|
||||
test:
|
||||
go test -v -cover ./...
|
||||
|
||||
build:
|
||||
CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-s" -o whoami
|
||||
|
||||
image:
|
||||
docker build -t containous/whoami .
|
||||
|
||||
check:
|
||||
golangci-lint run
|
||||
|
Reference in New Issue
Block a user