chore: migrate to justfile
parent
a084791cbd
commit
8c2ada9397
25
Makefile
25
Makefile
|
@ -1,25 +0,0 @@
|
||||||
.PHONY: all test-color lint try-4-real build clean
|
|
||||||
|
|
||||||
all: test-color lint
|
|
||||||
go mod tidy
|
|
||||||
$(MAKE) test-color
|
|
||||||
$(MAKE) lint
|
|
||||||
$(MAKE) build
|
|
||||||
$(MAKE) clean
|
|
||||||
|
|
||||||
test-color:
|
|
||||||
go install github.com/haunt98/go-test-color@latest
|
|
||||||
go-test-color -race -failfast .
|
|
||||||
|
|
||||||
lint:
|
|
||||||
golangci-lint run .
|
|
||||||
|
|
||||||
try-4-real:
|
|
||||||
go run . -race ./example/...
|
|
||||||
|
|
||||||
build:
|
|
||||||
$(MAKE) clean
|
|
||||||
go build -o go-test-color .
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f go-test-color
|
|
2
go.mod
2
go.mod
|
@ -1,6 +1,6 @@
|
||||||
module github.com/haunt98/go-test-color
|
module github.com/haunt98/go-test-color
|
||||||
|
|
||||||
go 1.18
|
go 1.22
|
||||||
|
|
||||||
require github.com/fatih/color v1.17.0
|
require github.com/fatih/color v1.17.0
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
all: tidy test-color lint
|
||||||
|
|
||||||
|
tidy:
|
||||||
|
go mod tidy
|
||||||
|
|
||||||
|
test-color:
|
||||||
|
go install github.com/haunt98/go-test-color@latest
|
||||||
|
go-test-color -race -failfast .
|
||||||
|
|
||||||
|
lint:
|
||||||
|
golangci-lint run .
|
||||||
|
|
||||||
|
try-4-real:
|
||||||
|
go run . -race ./example/...
|
||||||
|
|
||||||
|
build:
|
||||||
|
go build -o go-test-color .
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f go-test-color
|
Loading…
Reference in New Issue