diff --git a/Makefile b/Makefile deleted file mode 100644 index c21d8dc..0000000 --- a/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -.PHONY: all test test-color coverage coverage-cli coverate-html lint - -all: test-color lint - go mod tidy - -test: - go test -race -failfast ./... - -test-color: - go install github.com/haunt98/go-test-color@latest - go-test-color -race -failfast ./... - -coverage: - go test -coverprofile=coverage.out ./... - -coverage-cli: coverage - go tool cover -func=coverage.out - -coverage-html: coverage - go tool cover -html=coverage.out - -lint: - golangci-lint run ./... diff --git a/go.mod b/go.mod index e4ec256..481f8e7 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/haunt98/license -go 1.17 +go 1.22 require ( github.com/make-go-great/color-go v0.5.0 diff --git a/go.sum b/go.sum index 1de369e..5926305 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,3 @@ -github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= @@ -21,5 +20,3 @@ github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBi golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/justfile b/justfile new file mode 100644 index 0000000..b3fac0a --- /dev/null +++ b/justfile @@ -0,0 +1,23 @@ +all: tidy test-color lint + +tidy: + go mod tidy + +test: + go test -race -failfast ./... + +test-color: + # go install github.com/haunt98/go-test-color@latest + go-test-color -race -failfast ./... + +coverage: + go test -coverprofile=coverage.out ./... + +coverage-cli: coverage + go tool cover -func=coverage.out + +coverage-html: coverage + go tool cover -html=coverage.out + +lint: + golangci-lint run ./...