File tree 1 file changed +22
-22
lines changed
1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change 1
1
SHELL := /bin/bash
2
2
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
7
7
8
8
.PHONY : ci
9
- ci : # # CI build
10
- ci : dev diff
9
+ ci : # # CI build pipeline
10
+ ci : all diff
11
11
12
12
.PHONY : help
13
13
help :
@@ -21,26 +21,32 @@ clean: ## remove files created during build pipeline
21
21
rm -f ' "$(shell go env GOCACHE)/../golangci-lint"'
22
22
go clean -i -cache -testcache -modcache -fuzzcache -x
23
23
24
- .PHONY : mod-tidy
25
- mod-tidy : # # go mod tidy
24
+ .PHONY : mod
25
+ mod : # # go mod tidy
26
26
$(call print-target)
27
27
go mod tidy
28
28
cd tools && go mod tidy
29
29
30
- .PHONY : install
31
- install : # # go install tools
30
+ .PHONY : inst
31
+ inst : # # go install tools
32
32
$(call print-target)
33
33
cd tools && go install $(shell cd tools && go list -f '{{ join .Imports " " }}' -tags=tools)
34
34
35
- .PHONY : misspell
36
- misspell : # # misspell
35
+ .PHONY : gen
36
+ gen : # # go generate
37
37
$(call print-target)
38
- misspell -error -locale=US -w ** .md
38
+ go generate ./...
39
39
40
- .PHONY : generate
41
- generate : # # go generate
40
+ .PHONY : build
41
+ build : # # goreleaser build
42
+ build :
42
43
$(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
44
50
45
51
.PHONY : lint
46
52
lint : # # golangci-lint
@@ -53,12 +59,6 @@ test: ## go test
53
59
go test -race -covermode=atomic -coverprofile=coverage.out -coverpkg=./... ./...
54
60
go tool cover -html=coverage.out -o coverage.html
55
61
56
- .PHONY : build
57
- build : # # goreleaser build
58
- build :
59
- $(call print-target)
60
- goreleaser build --rm-dist --single-target --snapshot
61
-
62
62
.PHONY : diff
63
63
diff : # # git diff
64
64
$(call print-target)
You can’t perform that action at this time.
0 commit comments