update-go-mod/Makefile

31 lines
589 B
Makefile
Raw Normal View History

2022-07-22 14:07:02 +00:00
.PHONY: all test-color lint
2023-02-25 16:07:58 +00:00
all:
$(MAKE) test-color
$(MAKE) lint
2023-02-25 16:14:43 +00:00
$(MAKE) format
$(MAKE) build
$(MAKE) clean
2022-08-16 03:34:55 +00:00
go mod tidy
2022-07-22 14:07:02 +00:00
test-color:
go install github.com/haunt98/go-test-color@latest
go-test-color -race -failfast ./...
lint:
golangci-lint run ./...
2023-02-25 16:14:43 +00:00
format:
go install github.com/haunt98/gofimports/cmd/gofimports@latest
go install mvdan.cc/gofumpt@latest
go install mvdan.cc/sh/v3/cmd/shfmt@latest
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
gofumpt -w -extra .
build:
$(MAKE) clean
go build ./cmd/update-go-mod
clean:
rm -rf update-go-mod