From 75bcda41df7fd5a724953a2691ef30c0d7bf56e0 Mon Sep 17 00:00:00 2001 From: Francisco Delmar Kurpiel Date: Wed, 22 Oct 2025 20:48:41 +0200 Subject: [PATCH 1/2] 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. --- .github/workflows/ci.yml | 8 ++++---- go.mod | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f91f7ca..aa3179f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: build: strategy: matrix: - go: [1.22, 1.24] + go: [1.24, 1.25] name: build runs-on: ubuntu-latest steps: @@ -27,7 +27,7 @@ jobs: test: strategy: matrix: - go: [1.22, 1.24] + go: [1.24, 1.25] name: test runs-on: ubuntu-latest steps: @@ -42,8 +42,8 @@ jobs: golangci: strategy: matrix: - go: [1.24] - lint: [v2.1.6] + go: [1.25] + lint: [v2.5.0] name: lint runs-on: ubuntu-latest steps: diff --git a/go.mod b/go.mod index d3a1cdd..06d43ce 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/simplesurance/proteus -go 1.22 +go 1.25 require golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e From 28b2687d8e7e847aa281cfa3df9a8ed8d31c2c2a Mon Sep 17 00:00:00 2001 From: Francisco Delmar Kurpiel Date: Wed, 22 Oct 2025 20:52:36 +0200 Subject: [PATCH 2/2] Changing go.mod to 1.24, that is the oldest supported version --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 06d43ce..92d15b6 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/simplesurance/proteus -go 1.25 +go 1.24 require golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e