chore: update make

main
sudo pacman -Syu 2023-02-26 00:05:36 +07:00
parent a8bf68ea00
commit 77318986cd
1 changed files with 9 additions and 3 deletions

View File

@ -1,10 +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: all:
go mod tidy go mod tidy
$(MAKE) test-color $(MAKE) test-color
$(MAKE) lint $(MAKE) lint
$(MAKE) format $(MAKE) format
$(MAKE) build
$(MAKE) clean
test: test:
go test -race -failfast ./... go test -race -failfast ./...
@ -30,8 +32,12 @@ lint:
format: format:
go install github.com/haunt98/gofimports/cmd/gofimports@latest go install github.com/haunt98/gofimports/cmd/gofimports@latest
go install mvdan.cc/gofumpt@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 . gofumpt -w -extra .
build: build:
go build -o changeloguru-dev ./cmd/changeloguru $(MAKE) clean
go build ./cmd/changeloguru
clean:
rm -rf changeloguru