From 3685d65cc5b71d34ebb1a0576e482b73643a509c Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 3 Aug 2026 15:44:40 -0700 Subject: [PATCH] ci: bump Go, golangci-lint, codespell, and runners * Test matrix: 1.24.x (go.mod minimum) and 1.26.x (latest); drop 1.25.x. * GO_VERSION for the validate jobs: 1.25 -> 1.26. * golangci-lint: v2.4 -> v2.12. * codespell: 2.4.1 -> 2.4.3. * Runners: ubuntu-24.04 -> ubuntu-26.04. The actions themselves are already kept current by dependabot. Co-Authored-By: Claude Opus 5 Signed-off-by: Kir Kolyshkin --- .github/workflows/test.yml | 11 ++++++----- .github/workflows/validate.yml | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1227a15..34b1af5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,14 +15,15 @@ permissions: jobs: cgroup-v2: - name: "cgroup v2 (Ubuntu 24.04)" + name: "cgroup v2 (Ubuntu 26.04)" timeout-minutes: 10 strategy: fail-fast: false matrix: - go-version: [1.24.x, 1.25.x] + # Make sure to have version from go.mod included here. + go-version: [1.24.x, 1.26.x] race: ["-race", ""] - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@v7 @@ -34,7 +35,7 @@ jobs: cgroup-v1: name: "cgroup v1 (AlmaLinux 8)" timeout-minutes: 20 - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@v7 @@ -63,6 +64,6 @@ jobs: needs: - cgroup-v2 - cgroup-v1 - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - run: echo "All jobs completed" diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index dfa91ab..8643f2b 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -11,7 +11,7 @@ on: # Runs at 00:00 UTC every Monday - cron: '0 0 * * 1' env: - GO_VERSION: 1.25 + GO_VERSION: 1.26 permissions: contents: read @@ -22,7 +22,7 @@ jobs: contents: read pull-requests: read checks: write # to allow the action to annotate code in the PR. - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@v7 with: @@ -32,7 +32,7 @@ jobs: go-version: "${{ env.GO_VERSION }}" - uses: golangci/golangci-lint-action@v9 with: - version: v2.4 + version: v2.12 # Extra linters, only checking new code from a pull request. - name: lint-extra if: github.event_name == 'pull_request' @@ -40,7 +40,7 @@ jobs: golangci-lint run --config .golangci-extra.yml --new-from-rev=HEAD~1 go-fix: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@v7 with: @@ -54,23 +54,23 @@ jobs: git diff --exit-code codespell: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@v7 - name: install deps # Use a known version of codespell. - run: pip install --break-system-packages codespell==v2.4.1 + run: pip install --break-system-packages codespell==v2.4.3 - name: run codespell run: codespell space-at-eol: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@v7 - run: if git -P grep -I -n '\s$'; then echo "^^^ extra whitespace at EOL, please fix"; exit 1; fi deps: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 @@ -79,7 +79,7 @@ jobs: - run: go mod tidy --diff govulncheck: - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - uses: golang/govulncheck-action@v1 @@ -91,6 +91,6 @@ jobs: - govulncheck - lint - space-at-eol - runs-on: ubuntu-24.04 + runs-on: ubuntu-26.04 steps: - run: echo "All jobs completed"