File tree 4 files changed +1221
-100
lines changed
4 files changed +1221
-100
lines changed Original file line number Diff line number Diff line change 31
31
- uses : actions/setup-go@v5
32
32
with :
33
33
go-version-file : go.mod
34
- - uses : actions/cache@v4
35
- id : cache-makefile
36
- with :
37
- path : ~/go/bin
38
- key : ${{ runner.os }}-makefile-${{ hashFiles('Makefile') }}-${{ hashFiles('cmd') }}-${{ hashFiles('go.mod') }}
39
-
40
- - name : dependencies
41
- if : steps.cache-makefile.outputs.cache-hit != 'true'
42
- run : |
43
- make install-tools
44
34
45
35
- name : lint
46
36
run : |
Original file line number Diff line number Diff line change 1
- .PHONY : install-tools
2
- install-tools :
3
- go install ./cmd/protoc-gen-go-protobq
4
- go install github.com/bufbuild/buf/cmd/buf@v1.47.2
5
- go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
6
-
7
1
.PHONY : test
8
2
test :
9
3
go test -v ./...
10
4
11
5
.PHONY : format
12
6
format :
13
7
go fmt ./...
14
- golangci-lint run --issues-exit-code=0 --fix ./...
15
- buf format --write
8
+ go tool golangci-lint run --issues-exit-code=0 --fix ./...
9
+ go tool buf format --write
16
10
17
11
BREAKING_CHANGE_BASE_BRANCH? =develop
18
12
.PHONY : lint
19
13
lint :
20
- golangci-lint run --issues-exit-code=1 ./...
21
- buf lint
14
+ go tool golangci-lint run --issues-exit-code=1 ./...
15
+ go tool buf lint
22
16
# buf breaking --against '.git#branch=$(BREAKING_CHANGE_BASE_BRANCH)'
23
17
24
18
.PHONY : codegen
25
- codegen : install-tools
19
+ codegen :
20
+ go install ./cmd/protoc-gen-go-protobq
26
21
find . -type f \( -name ' *.pb.go' -or -name ' *.protobq.go' \) -delete
27
- buf generate
22
+ go tool buf generate
You can’t perform that action at this time.
0 commit comments