File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed
Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,25 @@ name: Lint & Test
22
33on :
44 push :
5- branches : [ master ]
5+ # branches: [ master ]
66 pull_request :
7- branches : [ master ]
7+ # branches: [ master ]
88
99jobs :
1010
1111 lint :
1212 runs-on : ubuntu-latest
1313
1414 steps :
15+ - name : Check go mod
16+ run : |
17+ mkdir -p ~/.cache/golangci-lint
18+ mkdir -p ~/.cache/go-build
19+
1520 - uses : actions/checkout@v4
16- - name : Set up Go
17- uses : actions/setup-go@v5
21+ - uses : actions/setup-go@v5
1822 with :
19- go-version : 1.22
23+ go-version-file : ' go.mod '
2024
2125 - name : Go Lint Cache
2226 uses : actions/cache@v3
Original file line number Diff line number Diff line change 1313 - uses : actions/setup-go@v5
1414 with :
1515 go-version-file : ' go.mod'
16+
1617 - name : Run GoReleaser
1718 uses : goreleaser/goreleaser-action@v5
1819 with :
Original file line number Diff line number Diff line change 11builds :
2- - main : ./cmds/protoc-gen-go-errors /main.go
2+ - main : ./cmds/protoc-gen-go-errors2 /main.go
33 id : protoc-gen-go-errors
44 binary : protoc-gen-go-errors
55 goos :
99 goarch :
1010 - amd64
1111 - arm64
12- - main : ./cmds/protoc-gen-go-enum /main.go
12+ - main : ./cmds/protoc-gen-go-enum2 /main.go
1313 id : protoc-gen-go-enum
1414 binary : protoc-gen-go-enum
1515 goos :
You can’t perform that action at this time.
0 commit comments