File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed
Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change 11SHELL := /bin/bash
22
3- .DEFAULT_GOAL := dev
4- .PHONY : dev
5- dev : # # dev build
6- dev : mod-tidy install misspell generate lint test build
3+ .DEFAULT_GOAL := all
4+ .PHONY : all
5+ all : # # build pipeline
6+ all : mod inst gen build spell lint test
77
88.PHONY : ci
9- ci : # # CI build
10- ci : dev diff
9+ ci : # # CI build pipeline
10+ ci : all diff
1111
1212.PHONY : help
1313help :
@@ -21,26 +21,32 @@ clean: ## remove files created during build pipeline
2121 rm -f ' "$(shell go env GOCACHE)/../golangci-lint"'
2222 go clean -i -cache -testcache -modcache -fuzzcache -x
2323
24- .PHONY : mod-tidy
25- mod-tidy : # # go mod tidy
24+ .PHONY : mod
25+ mod : # # go mod tidy
2626 $(call print-target)
2727 go mod tidy
2828 cd tools && go mod tidy
2929
30- .PHONY : install
31- install : # # go install tools
30+ .PHONY : inst
31+ inst : # # go install tools
3232 $(call print-target)
3333 cd tools && go install $(shell cd tools && go list -f '{{ join .Imports " " }}' -tags=tools)
3434
35- .PHONY : misspell
36- misspell : # # misspell
35+ .PHONY : gen
36+ gen : # # go generate
3737 $(call print-target)
38- misspell -error -locale=US -w ** .md
38+ go generate ./...
3939
40- .PHONY : generate
41- generate : # # go generate
40+ .PHONY : build
41+ build : # # goreleaser build
42+ build :
4243 $(call print-target)
43- go generate ./...
44+ goreleaser build --rm-dist --single-target --snapshot
45+
46+ .PHONY : spell
47+ spell : # # misspell
48+ $(call print-target)
49+ misspell -error -locale=US -w ** .md
4450
4551.PHONY : lint
4652lint : # # golangci-lint
@@ -53,12 +59,6 @@ test: ## go test
5359 go test -race -covermode=atomic -coverprofile=coverage.out -coverpkg=./... ./...
5460 go tool cover -html=coverage.out -o coverage.html
5561
56- .PHONY : build
57- build : # # goreleaser build
58- build :
59- $(call print-target)
60- goreleaser build --rm-dist --single-target --snapshot
61-
6262.PHONY : diff
6363diff : # # git diff
6464 $(call print-target)
You can’t perform that action at this time.
0 commit comments