From 8c2ada939720e34c442a63871b1c405e5d88d471 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Thu, 22 Aug 2024 14:49:13 +0700 Subject: [PATCH] chore: migrate to justfile --- Makefile | 25 ------------------------- go.mod | 2 +- justfile | 20 ++++++++++++++++++++ 3 files changed, 21 insertions(+), 26 deletions(-) delete mode 100644 Makefile create mode 100644 justfile diff --git a/Makefile b/Makefile deleted file mode 100644 index 9ca842a..0000000 --- a/Makefile +++ /dev/null @@ -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 diff --git a/go.mod b/go.mod index 90fb359..ac0125c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/haunt98/go-test-color -go 1.18 +go 1.22 require github.com/fatih/color v1.17.0 diff --git a/justfile b/justfile new file mode 100644 index 0000000..f627bcc --- /dev/null +++ b/justfile @@ -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