build-sys: replace gofmt.sh with make fmt
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
.PHONY: all fmt build test
|
||||||
|
|
||||||
|
GO ?= go
|
||||||
|
|
||||||
|
all: fmt build
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
$(GO) fmt ./...
|
||||||
|
$(GO) mod tidy || true
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(GO) get -v ./...
|
||||||
|
|
||||||
|
test:
|
||||||
|
$(GO) test -v ./...
|
||||||
Reference in New Issue
Block a user