Skip to content

Commit 7b948f9

Browse files
chore(ci): Update Go to 1.25 and upgrade golangci-lint (#46)
* chore(ci): Update Go to 1.25 and upgrade golangci-lint This commit updates the GitHub Actions CI workflow to add support for the upcoming Go 1.25 release and upgrades the linting tools. The build and test jobs now run against Go versions 1.24 and 1.25, dropping support for the older Go 1.22. This aligns with the standard practice of supporting the two latest major Go releases, ensuring the project remains compatible with the current language toolchain. Additionally, the `golangci-lint` job is updated: - The Go version for the lint job is set to 1.25. - The `golangci/golangci-lint-action` is upgraded from v2.1.6 to v2.5.0 to leverage the latest linters, performance improvements, and bug fixes. * Changing go.mod to 1.24, that is the oldest supported version
1 parent 4ad8c75 commit 7b948f9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
go: [1.22, 1.24]
15+
go: [1.24, 1.25]
1616
name: build
1717
runs-on: ubuntu-latest
1818
steps:
@@ -27,7 +27,7 @@ jobs:
2727
test:
2828
strategy:
2929
matrix:
30-
go: [1.22, 1.24]
30+
go: [1.24, 1.25]
3131
name: test
3232
runs-on: ubuntu-latest
3333
steps:
@@ -42,8 +42,8 @@ jobs:
4242
golangci:
4343
strategy:
4444
matrix:
45-
go: [1.24]
46-
lint: [v2.1.6]
45+
go: [1.25]
46+
lint: [v2.5.0]
4747
name: lint
4848
runs-on: ubuntu-latest
4949
steps:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/simplesurance/proteus
22

3-
go 1.22
3+
go 1.24
44

55
require golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e

0 commit comments

Comments
 (0)