File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,32 +12,20 @@ jobs:
1212 name : golang lint
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v4
15+ - uses : actions/checkout@v6
1616 - name : golangci-lint
17- uses : golangci/golangci-lint-action@v4
17+ uses : golangci/golangci-lint-action@v9
1818 with :
19- version : v1.60.3
20-
21- gomodtidy :
22- name : go mod tidy check
23- runs-on : ubuntu-latest
24- steps :
25- - uses : actions/checkout@v4
26- - uses : actions/setup-go@v3
27- with :
28- go-version : ' 1.22'
29- check-latest : true
30- - run : go mod tidy
31- - run : git diff --exit-code -- go.mod go.sum
19+ version : v2.8.0
3220
3321 tests :
3422 name : golang test
3523 runs-on : ubuntu-latest
3624 steps :
37- - uses : actions/checkout@v4
38- - uses : actions/setup-go@v3
25+ - uses : actions/checkout@v6
26+ - uses : actions/setup-go@v6
3927 with :
40- go-version : ' 1.22 '
28+ go-version : ' 1.25 '
4129 check-latest : true
30+ - run : go mod tidy -diff
4231 - run : go test -cover -race ./...
43-
Original file line number Diff line number Diff line change 66
77up :
88 - go :
9- version : 1.22.6
9+ version : 1.25.7
1010 modules : true
1111 - custom :
1212 name : Create local install directory
1313 met? : ' [ "*" = "`cat .devbuddy/.gitignore`" ]'
1414 meet : mkdir -p .devbuddy && echo '*' > .devbuddy/.gitignore
1515 - custom :
1616 name : Install golangci-lint
17- met? : test -x .devbuddy/golangci-lint && .devbuddy/golangci-lint --version | grep -q 'v1.60.3 '
18- meet : GOBIN=$PWD/.devbuddy go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.3
17+ met? : test -x .devbuddy/golangci-lint && .devbuddy/golangci-lint --version | grep -q '2.8.0 '
18+ meet : GOBIN=$PWD/.devbuddy go install github.com/golangci/golangci-lint/v2/ cmd/golangci-lint@v2.8.0
1919
2020commands :
2121 test : go test -cover -race ./...
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func main() {
1616 Addr : "localhost:8000" ,
1717 Handler : http .HandlerFunc (func (rw http.ResponseWriter , r * http.Request ) {
1818 jobs .Perform (r .URL .Path )
19- fmt .Fprintln (rw , "Job enqueued!" )
19+ _ , _ = fmt .Fprintln (rw , "Job enqueued!" )
2020 }),
2121 }
2222 serverRunner := runnable .HTTPServer (server )
Original file line number Diff line number Diff line change 11module github.com/pior/runnable
22
3- go 1.22
3+ go 1.25
44
55require github.com/stretchr/testify v1.9.0
66
You can’t perform that action at this time.
0 commit comments