2023-02-25 17:08:05 +00:00
|
|
|
.PHONY: all test-color lint try-4-real build clean
|
2022-07-23 14:30:15 +00:00
|
|
|
|
2022-08-13 10:06:54 +00:00
|
|
|
all: test-color lint
|
|
|
|
go mod tidy
|
2023-02-25 16:33:16 +00:00
|
|
|
$(MAKE) test-color
|
|
|
|
$(MAKE) lint
|
|
|
|
$(MAKE) build
|
|
|
|
$(MAKE) clean
|
2022-07-23 14:30:15 +00:00
|
|
|
|
|
|
|
test-color:
|
|
|
|
go install github.com/haunt98/go-test-color@latest
|
2022-08-13 10:06:54 +00:00
|
|
|
go-test-color -race -failfast .
|
2022-07-23 14:30:15 +00:00
|
|
|
|
|
|
|
lint:
|
2022-08-13 10:06:54 +00:00
|
|
|
golangci-lint run .
|
2022-07-23 16:27:08 +00:00
|
|
|
|
|
|
|
try-4-real:
|
2022-08-13 10:06:54 +00:00
|
|
|
go run . -race ./example/...
|
2023-02-25 16:33:16 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
$(MAKE) clean
|
|
|
|
go build -o go-test-color .
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f go-test-color
|