From 61e59a2eb0304f696ddfcbc6333f3231ac35ea4b Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 21:15:13 +0000 Subject: [PATCH] ci: GitHub Actions on Node 24 Node 20 is removed from GitHub's runners. checkout@v6, setup-go@v6, upload-artifact@v6, github-script@v8, golangci-lint-action@v9 and action-gh-release@v3 are the first majors on node24, with the same inputs. No change to the library. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_013GcASrGGa8qWVV78mbXJoa --- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/conformance.yml | 12 ++++++------ .github/workflows/release.yml | 4 ++-- CHANGELOG.md | 11 +++++++++++ 4 files changed, 26 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f057c49..e126dcf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,10 +41,10 @@ jobs: GOTOOLCHAIN: ${{ matrix.target == 'floor' && 'local' || 'auto' }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Go ${{ matrix.go-version }} - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: ${{ matrix.go-version }} cache: true @@ -89,12 +89,12 @@ jobs: name: golangci-lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-go@v6 with: go-version: "1.27.2" cache: true - - uses: golangci/golangci-lint-action@v7 + - uses: golangci/golangci-lint-action@v9 with: version: v2.14.0 # Build golangci-lint with the job's Go toolchain (1.27.2). The prebuilt @@ -113,8 +113,8 @@ jobs: name: govulncheck runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-go@v6 with: go-version: "1.27.2" cache: true diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index a2723be..e0711a9 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -59,11 +59,11 @@ jobs: SOCRATE_REF: ${{ inputs.socrate_ref || 'main' }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: path: backendkit - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: repository: ovander/go-oauth2 ref: ${{ env.SOCRATE_REF }} @@ -80,7 +80,7 @@ jobs: echo "Socrate $(git -C socrate rev-parse --short HEAD) ($SOCRATE_REF)" >> "$GITHUB_STEP_SUMMARY" - name: Set up Go ${{ steps.go.outputs.socrate }} (Socrate) - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: ${{ steps.go.outputs.socrate }} cache: true @@ -97,7 +97,7 @@ jobs: go build -o "$RUNNER_TEMP/socrate" ./cmd/server - name: Set up Go ${{ steps.go.outputs.backendkit }} (backendkit) - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: ${{ steps.go.outputs.backendkit }} cache: false @@ -126,7 +126,7 @@ jobs: - name: Upload the Socrate log if: failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: socrate-server-log path: ${{ env.CONFORMANCE_WORKDIR }}/server.log @@ -142,7 +142,7 @@ jobs: permissions: issues: write steps: - - uses: actions/github-script@v7 + - uses: actions/github-script@v8 env: SOCRATE_REF: ${{ inputs.socrate_ref || 'main' }} with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 805a1bf..364ab7b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: # Full history + tags so the changelog step can resolve the previous # tag and `git log ..HEAD` produces complete release notes @@ -38,7 +38,7 @@ jobs: fi - name: Create GitHub Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v3 with: name: ${{ steps.tag.outputs.TAG_NAME }} body_path: CHANGELOG_TEMP.md \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 75e5c1a..4cec93b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,17 @@ All notable changes to backendkit are documented here. Format: ## [Unreleased] +### Changed +- **CI: GitHub Actions on Node 24.** Node 20 actions are deprecated and removed from GitHub's + runners, so each workflow now uses: + - `actions/checkout@v6`, `actions/setup-go@v6` and `actions/upload-artifact@v6`; + - `actions/github-script@v8`; + - `golangci/golangci-lint-action@v9` (same inputs; golangci-lint is still built with the + job's Go); + - `softprops/action-gh-release@v3`. + + No change to the library or its API. + ## [1.27.0] - 2026-10-11 Minor release on the **v1** line: additive API only. `socrate.Client.ServiceTokenWithScopes`