File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -18,27 +18,24 @@ jobs:
1818 steps :
1919 - name : Check out code
2020 uses : actions/checkout@v3
21- with :
22- fetch-depth : 2
2321
2422 - uses : actions/setup-go@v5
2523 with :
26- go-version : ' ^1.23.4'
27- - run : go version
24+ go-version-file : go.mod
2825
2926 - name : Install gofumpt
3027 run : go install mvdan.cc/gofumpt@latest
3128
32- - name : Add gofumpt to PATH
29+ - name : Add go bin to PATH
3330 run : echo "$GOPATH/bin" >> $GITHUB_PATH
3431
3532 - name : Run gofumpt
3633 run : diff <(echo -n) <(gofumpt -d .)
3734
3835 - name : golangci-lint
39- uses : golangci/golangci-lint-action@v6
36+ uses : golangci/golangci-lint-action@v9
4037 with :
41- version : v1.62.2
38+ version : v2.7
4239 args : --verbose --timeout=3m
4340
4441 - name : Test
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ GOCMD=GO111MODULE=on go
33linters-install :
44 @golangci-lint --version > /dev/null 2>&1 || { \
55 echo " installing linting tools..." ; \
6- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.62 .2; \
6+ curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v2.7 .2; \
77 }
88
99lint : linters-install
You can’t perform that action at this time.
0 commit comments