File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1818 - name : Check out source
1919 uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
2020 - name : Install Linters
21- run : " curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.3 "
21+ run : " curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.2.2 "
2222 - name : Build
2323 run : go build ./...
2424 - name : Test
Original file line number Diff line number Diff line change 1+ version : 2
2+
13run :
2- deadline : 10m
4+ timeout : 10m
35
46linters :
57 disable-all : true
68 enable :
79 - asciicheck
810 - bidichk
911 - bodyclose
10- - gofmt
11- - goimports
12- - gosimple
1312 - govet
1413 - grouper
1514 - ineffassign
@@ -20,6 +19,10 @@ linters:
2019 - rowserrcheck
2120 - sqlclosecheck
2221 - tparallel
23- - typecheck
2422 - unconvert
2523 - unused
24+
25+ formatters :
26+ enable :
27+ - gofmt
28+ - goimports
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ go mod download
2020go mod tidy
2121UPDATED_MOD_STATUS=$( git status --porcelain go.mod go.sum)
2222if [ " $UPDATED_MOD_STATUS " != " $MOD_STATUS " ]; then
23- echo " Running ` go mod tidy` modified go.mod and/or go.sum"
23+ echo " Running $( go mod tidy) modified go.mod and/or go.sum"
2424 exit 1
2525fi
2626
You can’t perform that action at this time.
0 commit comments