File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,16 @@ install-git-hooks:
6
6
chmod +x .git/hooks/pre-push
7
7
8
8
.PHONY : pre-commit
9
- pre-commit :
10
- make lint-fix
9
+ pre-commit : lint-fix
11
10
12
11
.PHONY : pre-push
13
12
pre-push :
14
13
make -C src test
15
14
16
15
.PHONY : lint
17
16
lint :
18
- cd src && golangci- lint run
17
+ make -C src lint
19
18
20
19
.PHONY : lint-fix
21
20
lint-fix :
22
- cd src && golangci-lint run - -fix
21
+ make -C src lint -fix
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ install: $(BINARY_NAME)
20
20
.PHONY : test
21
21
test : $(PROTOS )
22
22
go mod tidy
23
- go test -test.short ./... | sed -e ' s/\(--- FAIL.*\)/[0;31m\1[0m/g'
23
+ set -o pipefail ; go test -test.short ./... | sed -e ' s/\(--- FAIL.*\)/[0;31m\1[0m/g'
24
24
25
25
.PHONY : integ
26
26
integ : $(PROTOS )
27
- go test -v -tags=integration ./... | sed -e ' s/\(--- FAIL.*\)/[0;31m\1[0m/g'
27
+ set -o pipefail ; go test -v -tags=integration ./... | sed -e ' s/\(--- FAIL.*\)/[0;31m\1[0m/g'
28
28
29
29
.PHONY : linux-amd64
30
30
linux-amd64 : test
61
61
release : pull test no-diff
62
62
git tag $$(git tag -l 'v*' --sort=-v:refname | head -n1 | awk -F. '{$$NF = $$NF + 1;} 1' OFS=. )
63
63
git push --follow-tags --tags
64
+
65
+ .PHONY : lint
66
+ lint :
67
+ golangci-lint run
68
+
69
+ .PHONY : lint-fix
70
+ lint-fix :
71
+ golangci-lint run --fix
You can’t perform that action at this time.
0 commit comments