chore: migrate to justfile

main
sudo pacman -Syu 2024-08-22 14:49:13 +07:00
parent a084791cbd
commit 8c2ada9397
3 changed files with 21 additions and 26 deletions

View File

@ -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
View File

@ -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

20
justfile Normal file
View File

@ -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