Skip to content

housekeeping, ci: bump GitHub Actions to Node 24 runtimes#616

Merged
NickJosevski merged 2 commits into
mainfrom
nj/ga-nodev-update
Jul 16, 2026
Merged

housekeeping, ci: bump GitHub Actions to Node 24 runtimes#616
NickJosevski merged 2 commits into
mainfrom
nj/ga-nodev-update

Conversation

@NickJosevski

Copy link
Copy Markdown
Contributor

Move Node-based actions off the deprecated Node 20 runtime (GitHub is force-mapping them to Node 24) by bumping each to the lowest major version that ships a Node 24 runtime:

NickJosevski and others added 2 commits July 16, 2026 11:07
Move Node-based actions off the deprecated Node 20 runtime (GitHub is
force-mapping them to Node 24) by bumping each to the lowest major
version that ships a Node 24 runtime:

- actions/checkout            v3   -> v5
- actions/setup-go            v3   -> v6
- dorny/test-reporter         v1   -> v3
- actions/upload-artifact     v4   -> v6
- actions/download-artifact   v4   -> v7
- EndBug/add-and-commit       v9   -> v10
- nuget/setup-nuget           v1   -> v3
- microsoft/setup-msbuild     v1.1 -> v3
- OctopusDeploy/create-release-action     v3 -> v4
- OctopusDeploy/create-zip-package-action v3 -> v4
- OctopusDeploy/push-package-action       v3 -> v4

Left unchanged (no Node 24 release exists upstream yet; still node16/20
and force-mapped by GitHub at runtime):
- goreleaser/goreleaser-action (latest v6 = node20)
- crazy-max/ghaction-import-gpg (latest v6 = node20)
- google-github-actions/release-please-action (latest v4 = node20)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
setup-go@v6 sets GOTOOLCHAIN=local, which stops Go from auto-downloading
a newer toolchain. The workflows pinned go-version: 1.21 while go.mod
requires go 1.25.5, so `go build` failed with:
  go: go.mod requires go >= 1.25.5 (running go 1.21.13; GOTOOLCHAIN=local)

Under setup-go@v3 (GOTOOLCHAIN=auto) the mismatch was masked by an
automatic toolchain download. Point setup-go at go-version-file (go.mod,
or cli/go.mod in generate-docs where the CLI is checked out to cli/) so
the installed toolchain always matches the module requirement.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@APErebus APErebus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, just 1 question

uses: actions/setup-go@v6
with:
go-version: 1.21
go-version-file: cli/go.mod

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this change doing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avoids drift and maintaining version number in more places, it's the 2nd line in the go.mod file, and this mechanism gets it from there.

CleanShot 2026-07-16 at 13 21 40

@NickJosevski NickJosevski merged commit f13060c into main Jul 16, 2026
2 checks passed
@NickJosevski NickJosevski deleted the nj/ga-nodev-update branch July 16, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants