Skip to content

Commit bb93a75

Browse files
authored
Merge pull request #18 from averak/feature/16-hello-go-1.24
hello golang@1.24
2 parents ce38ad5 + c16ea33 commit bb93a75

File tree

4 files changed

+1221
-100
lines changed

4 files changed

+1221
-100
lines changed

.github/workflows/ci.yml

-10
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ jobs:
3131
- uses: actions/setup-go@v5
3232
with:
3333
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
4434

4535
- name: lint
4636
run: |

Makefile

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
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-
71
.PHONY: test
82
test:
93
go test -v ./...
104

115
.PHONY: format
126
format:
137
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
1610

1711
BREAKING_CHANGE_BASE_BRANCH?=develop
1812
.PHONY: lint
1913
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
2216
# buf breaking --against '.git#branch=$(BREAKING_CHANGE_BASE_BRANCH)'
2317

2418
.PHONY: codegen
25-
codegen: install-tools
19+
codegen:
20+
go install ./cmd/protoc-gen-go-protobq
2621
find . -type f \( -name '*.pb.go' -or -name '*.protobq.go' \) -delete
27-
buf generate
22+
go tool buf generate

0 commit comments

Comments
 (0)