chore: update make

main
sudo pacman -Syu 2023-02-26 00:03:06 +07:00
parent 808701ee5f
commit c460e7e7cc
1 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,12 @@
.PHONY: all test test-color coverage coverage-cli coverate-html lint format build
.PHONY: all test test-color coverage coverage-cli coverate-html lint format build clean
all: test-color lint format
all:
go mod tidy
$(MAKE) test-color
$(MAKE) lint
$(MAKE) format
$(MAKE) build
$(MAKE) clean
test:
go test -race -failfast ./...
@ -25,8 +30,12 @@ lint:
format:
go install github.com/haunt98/gofimports/cmd/gofimports@latest
go install mvdan.cc/gofumpt@latest
gofimports -w -company github.com/make-go-great .
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
gofumpt -w -extra .
build:
$(MAKE) clean
go build ./cmd/populatedb
clean:
rm -rf populatedb