File tree Expand file tree Collapse file tree 7 files changed +40
-28
lines changed
Expand file tree Collapse file tree 7 files changed +40
-28
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,10 @@ jobs:
1616 name : lint
1717 runs-on : ubuntu-latest
1818 steps :
19- - uses : actions/checkout@v4
20- - uses : actions/setup-go@v5
19+ - uses : actions/checkout@v5
20+ - uses : actions/setup-go@v6
2121 with :
2222 go-version-file : go.mod
2323 cache : false
2424 - name : golangci-lint
25- uses : golangci/golangci-lint-action@v4
26- with :
27- # Require: The version of golangci-lint to use.
28- # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
29- # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
30- version : v1.64.8
25+ uses : golangci/golangci-lint-action@v9
Original file line number Diff line number Diff line change @@ -11,15 +11,17 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout code
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v6
15+ with :
16+ fetch-depth : 0
1517
1618 - name : Install Go
17- uses : actions/setup-go@v5
19+ uses : actions/setup-go@v6
1820 with :
1921 go-version-file : go.mod
2022
2123 - name : generate README.md
2224 run : make README.md
2325
2426 - name : check for uncommitted changes
25- run : git diff --exit-code
27+ run : git diff --exit-code
Original file line number Diff line number Diff line change @@ -13,15 +13,17 @@ jobs:
1313 runs-on : ubuntu-latest
1414 steps :
1515 - name : Checkout code
16- uses : actions/checkout@v2
16+ uses : actions/checkout@v6
17+ with :
18+ fetch-depth : 0
1719
1820 - name : Install Go
19- uses : actions/setup-go@v5
21+ uses : actions/setup-go@v6
2022 with :
2123 go-version-file : go.mod
2224
2325 - name : Run GoReleaser
24- uses : goreleaser/goreleaser-action@v6
26+ uses : goreleaser/goreleaser-action@v7
2527 with :
2628 distribution : goreleaser
2729 version : " ~> v2"
Original file line number Diff line number Diff line change 2727 SPANNER_EMULATOR_HOST : localhost:9010
2828 steps :
2929 - name : Checkout code
30- uses : actions/checkout@v2
30+ uses : actions/checkout@v6
31+ with :
32+ fetch-depth : 0
3133 - name : Install Go
32- uses : actions/setup-go@v5
34+ uses : actions/setup-go@v6
3335 with :
3436 go-version-file : go.mod
3537 - name : Test
Original file line number Diff line number Diff line change 1- # golangci-lint configuration
2- # https://golangci-lint.run/usage/configuration/
3-
4- run :
5- timeout : 5m
6-
1+ version : " 2"
72linters :
8- disable-all : true
3+ default : none
94 enable :
105 - errcheck
11- - gosimple
126 - govet
137 - ineffassign
14- - staticcheck
15- # - typecheck
8+ # - staticcheck
169 - unconvert
1710 - unused
11+ exclusions :
12+ generated : lax
13+ presets :
14+ - comments
15+ - common-false-positives
16+ - legacy
17+ - std-error-handling
18+ paths :
19+ - third_party$
20+ - builtin$
21+ - examples$
22+ formatters :
23+ exclusions :
24+ generated : lax
25+ paths :
26+ - third_party$
27+ - builtin$
28+ - examples$
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ README.md:
2121lint : tooldep.golangci-lint
2222 golangci-lint run
2323
24- GOLANGCI_LINT_VERSION ?= 1.64.8
24+ GOLANGCI_LINT_VERSION ?= 2.11.3
2525.PHONY : tooldep.golangci-lint
2626tooldep.golangci-lint :
2727 -@[[ " $( shell golangci-lint version) " =~ " $( GOLANGCI_LINT_VERSION) " ]] || \
Original file line number Diff line number Diff line change @@ -96,4 +96,4 @@ require (
9696 gopkg.in/yaml.v3 v3.0.1 // indirect
9797)
9898
99- go 1.24.11
99+ go 1.25
You can’t perform that action at this time.
0 commit comments