update to Go 1.25, drop Go 1.23, use go tool for gomock (#5283)

* update to Go 1.25, drop support for Go 1.23

* ci: update golangci-lint to v2.4.0

* use new go tool command for gomock / mockgen

* also update Go version used for oss-fuzz
This commit is contained in:
Marten Seemann
2025-08-16 06:14:01 +02:00
committed by GitHub
parent fee90a89ef
commit fea19fc3ec
17 changed files with 98 additions and 104 deletions

View File

@@ -4,7 +4,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [ "1.23.x", "1.24.x", "1.25.0-rc.1" ]
go: [ "1.24.x", "1.25.x" ]
runs-on: ${{ fromJSON(vars['CROSS_COMPILE_RUNNER_UBUNTU'] || '"ubuntu-latest"') }}
name: "Cross Compilation (Go ${{matrix.go}})"
timeout-minutes: 30

View File

@@ -6,21 +6,21 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu" ]
go: [ "1.23.x", "1.24.x", "1.25.0-rc.1" ]
go: [ "1.24.x", "1.25.x" ]
race: [ false ]
use32bit: [ false ]
include:
- os: "ubuntu"
go: "1.24.x"
go: "1.25.x"
race: true
- os: "ubuntu"
go: "1.24.x"
go: "1.25.x"
use32bit: true
- os: "windows"
go: "1.24.x"
go: "1.25.x"
race: false
- os: "macos"
go: "1.24.x"
go: "1.25.x"
race: false
runs-on: ${{ fromJSON(vars[format('INTEGRATION_RUNNER_{0}', matrix.os)] || format('"{0}-latest"', matrix.os)) }}
timeout-minutes: 30

View File

@@ -8,7 +8,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.24.x"
go-version: "1.25.x"
- name: Check for //go:build ignore in .go files
run: |
IGNORED_FILES=$(grep -rl '//go:build ignore' . --include='*.go') || true
@@ -37,9 +37,9 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [ "1.23.x", "1.24.x", "1.25.0-rc.1" ]
go: [ "1.24.x", "1.25.x" ]
env:
GOLANGCI_LINT_VERSION: v2.1.6
GOLANGCI_LINT_VERSION: v2.4.0
name: golangci-lint (Go ${{ matrix.go }})
steps:
- uses: actions/checkout@v4

View File

@@ -7,7 +7,7 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu", "windows", "macos" ]
go: [ "1.23.x", "1.24.x", "1.25.0-rc.1" ]
go: [ "1.24.x", "1.25.x" ]
runs-on: ${{ fromJSON(vars[format('UNIT_RUNNER_{0}', matrix.os)] || format('"{0}-latest"', matrix.os)) }}
name: Unit tests (${{ matrix.os}}, Go ${{ matrix.go }})
timeout-minutes: 30