Skip to content

Commit e100f74

Browse files
authored
Merge pull request #46 from pior/update-go
Upgrade Go to v1.25 and golangci-lint to v2.8.0
2 parents 387f46f + 2dccc33 commit e100f74

4 files changed

Lines changed: 12 additions & 24 deletions

File tree

.github/workflows/go.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff 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-

dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ env:
66

77
up:
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

2020
commands:
2121
test: go test -cover -race ./...

examples/example/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/pior/runnable
22

3-
go 1.22
3+
go 1.25
44

55
require github.com/stretchr/testify v1.9.0
66

0 commit comments

Comments
 (0)