File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 11name : Go
22on :
33 push :
4+ tags :
5+ - v*
6+ branches :
7+ - master
8+ - main
49 pull_request :
510jobs :
611 build :
1015 - name : Set up Go 1.x
1116 uses : actions/setup-go@v2
1217 with :
13- go-version : ^1.13
18+ go-version : 1.17
1419 - name : Check out code into the Go module directory
1520 uses : actions/checkout@v2
1621 - name : Get dependencies
Original file line number Diff line number Diff line change 11name : golangci-lint
22on :
33 push :
4+ tags :
5+ - v*
6+ branches :
7+ - master
8+ - main
49 pull_request :
10+ permissions :
11+ contents : read
512jobs :
613 golangci :
714 name : lint
815 runs-on : ubuntu-latest
916 steps :
17+ - uses : actions/setup-go@v2
18+ with :
19+ # golangci-lint breaks on 1.18 for now: https://github.com/golangci/golangci-lint/issues/2649
20+ # TODO(Bobgy): revert to ^1.17 for this and go.yml after it's fixed.
21+ go-version : 1.17
1022 - uses : actions/checkout@v2
1123 - name : golangci-lint
12- uses : golangci/golangci-lint-action@v2
24+ uses : golangci/golangci-lint-action@v3
1325 with :
1426 # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
1527 # NOTICE: golangci-lint version should be the same as go.mod. When upgrading, also update go.mod by:
You can’t perform that action at this time.
0 commit comments