chore: add linter.

This commit is contained in:
Fernandez Ludovic
2019-09-17 01:18:11 +02:00
parent c0fd58d016
commit affedf56a2
4 changed files with 63 additions and 8 deletions

View File

@ -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