bump Go version in go.mod, stop testing on Go 1.21 (#4633)

* bump Go version in go.mod, stop testing on Go 1.21

* ci: update golangci-lint to v1.60.1

* ignore Go 1.23 0-RTT events in exhaustive linter
This commit is contained in:
Marten Seemann
2024-08-17 15:30:03 +08:00
committed by GitHub
parent b3811692d9
commit d067fe4156
10 changed files with 21 additions and 16 deletions

View File

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

View File

@@ -6,17 +6,17 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu" ]
go: [ "1.21.x", "1.22.x", "1.23.0-rc.2" ]
go: [ "1.22.x", "1.23.x" ]
race: [ false ]
include:
- os: "ubuntu"
go: "1.22.x"
go: "1.23.x"
race: true
- os: "windows"
go: "1.21.x"
go: "1.23.x"
race: false
- os: "macos"
go: "1.21.x"
go: "1.23.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.22.x"
go-version: "1.23.x"
- name: Check that no non-test files import Ginkgo or Gomega
run: .github/workflows/no_ginkgo.sh
- name: Check for //go:build ignore in .go files
@@ -39,9 +39,9 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [ "1.21.x", "1.22.x" ]
go: [ "1.22.x", "1.23.x" ]
env:
GOLANGCI_LINT_VERSION: v1.58.0
GOLANGCI_LINT_VERSION: v1.60.1
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.21.x", "1.22.x", "1.23.0-rc.2" ]
go: [ "1.22.x", "1.23.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