File tree Expand file tree Collapse file tree 3 files changed +25
-17
lines changed
Expand file tree Collapse file tree 3 files changed +25
-17
lines changed Original file line number Diff line number Diff line change 66 all :
77 strategy :
88 matrix :
9- go-version : [1.21 .x]
9+ go-version : [1.24 .x]
1010 os : [ubuntu-latest]
11- task-version : [v3.34.0 ]
11+ task-version : [v3.44.1 ]
1212 runs-on : ${{ matrix.os }}
1313 steps :
1414 - name : Install Go ${{ matrix.go-version }}
15- uses : actions/setup-go@v4
15+ uses : actions/setup-go@v5
1616 with :
1717 go-version : ${{ matrix.go-version }}
1818 - name : Install task ${{ matrix.task-version }}
Original file line number Diff line number Diff line change 1- # See https://golangci-lint.run/usage/configuration/#config-file
2-
1+ version : " 2"
32linters :
4- # NOTE: `enable` _adds_ to the default linters!
5- # To see the currently enabled linters, run `golangci-lint linters`
63 enable :
74 - gocritic
5+ exclusions :
6+ generated : lax
7+ presets :
8+ - comments
9+ - common-false-positives
10+ - legacy
11+ - std-error-handling
12+ paths :
13+ - third_party$
14+ - builtin$
15+ - examples$
16+ formatters :
17+ exclusions :
18+ generated : lax
19+ paths :
20+ - third_party$
21+ - builtin$
22+ - examples$
Original file line number Diff line number Diff line change 88 sh : " echo $(which gotestsum 2> /dev/null)"
99 TESTRUNNER : " {{if .GOTESTSUM}}{{base .GOTESTSUM}} --{{else}}go test{{end}}"
1010 #
11- GOLANGCI_VERSION : v1.55.2
12- GOTESTSUM_VERSION : v1.11.0
13- GOLINES_VERSION : v0.12.2
11+ GOLANGCI_VERSION : v2.3.1
12+ GOTESTSUM_VERSION : v1.12.3
1413
1514tasks :
1615
1716 install:deps :
1817 desc : Install tool dependencies.
1918 cmds :
20- - go install github.com/golangci/golangci-lint/cmd/golangci-lint@{{.GOLANGCI_VERSION}}
19+ - go install github.com/golangci/golangci-lint/v2/ cmd/golangci-lint@{{.GOLANGCI_VERSION}}
2120 - go install gotest.tools/gotestsum@{{.GOTESTSUM_VERSION}}
22- - go install github.com/segmentio/golines@{{.GOLINES_VERSION}}
2321 - go install github.com/github-release/github-release@latest
2422
2523 lint :
2624 desc : Lint the code.
2725 cmds :
2826 - golangci-lint run ./...
2927
30- lint:linelength :
31- desc : Enforce max line length. Use the tool output only as a hint, sometimes it makes wrong decisions.
32- cmds :
33- - golines --max-len=99 --write-output .
34-
3528 test :
3629 desc : Run all the tests (unit + integration). Use this target to get total coverage.
3730 cmds :
You can’t perform that action at this time.
0 commit comments