Skip to content

Move GitHub Actions off Node 20 and fix flaky CI steps - #410

Merged
alberttwong merged 1 commit into
masterfrom
claude/nodejs-20-github-actions-713212
Nov 23, 2026
Merged

alberttwong merged 1 commit into
masterfrom
claude/nodejs-20-github-actions-713212

Conversation

@alberttwong

Copy link
Copy Markdown
Collaborator

Why

GitHub runners now force Node 20 actions onto Node 24 and warn that actions/setup-java@v4 will get no more updates. Three of the last four Continuous Integration runs on master also failed:

What changed

Action Before After
actions/checkout v2, v4 v7
actions/setup-java v2, v4 v6
s4u/setup-maven-action v1.8.0 (nests checkout/setup-java/cache v3) v1.22.0
codecov/codecov-action v4.0.1 v7
release-drafter/release-drafter v5 v7

All of them run on Node 24 or are composite actions.

  • Codecov v7 wraps the Codecov CLI and leaves fail_ci_if_error off, so a Codecov outage no longer fails the build.
  • setup-maven-action v1.22.0 now defaults to Zulu and Maven 3.10.0. This PR pins java-distribution: temurin and maven-version: 3.9.2 so the build stays on the Temurin 8 JDK that setup-java installs. Its built-in checkout is turned off because the job already checks out the project.
  • Release workflow: ::set-output is replaced with $GITHUB_OUTPUT, and the retired adopt distribution becomes temurin.
  • Release Drafter v7 reads github.token by default, so the GITHUB_TOKEN env var is gone. The existing config uses no v7-incompatible keys.

Testing

  • The Continuous Integration workflow runs on this PR.
  • The release workflow only runs when a release is published, so it isn't exercised here.
  • Release Drafter runs on the next push to master.

🤖 Generated with Claude Code

The runners now force Node 20 actions onto Node 24 and warn that
setup-java v4 gets no more updates. Bump every action to its current
major, all of which run on Node 24 or are composite:

- actions/checkout v2/v4 -> v7
- actions/setup-java v2/v4 -> v6
- s4u/setup-maven-action v1.8.0 -> v1.22.0 (its nested checkout,
  setup-java and cache were v3, also on Node 20)
- codecov/codecov-action v4.0.1 -> v7
- release-drafter/release-drafter v5 -> v7

The last master runs failed twice in setup-java (a bad JDK download)
and once in codecov v4.0.1, which crashed with EPIPE when the Codecov
API returned HTML. Codecov v7 is a wrapper around the CLI and keeps
fail_ci_if_error off, so a Codecov outage no longer fails the build.

setup-maven-action v1.22.0 now defaults to Zulu and Maven 3.10.0, so
pin java-distribution to temurin and maven-version to 3.9.2 to keep
the build on the JDK that setup-java installs. Skip its checkout, since
the job already checks out the project.

In the release workflow, replace the removed ::set-output command with
$GITHUB_OUTPUT and switch the retired adopt distribution to temurin.
release-drafter v7 reads github.token by default, so drop the env var.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alberttwong
alberttwong merged commit 2005f7f into master Nov 23, 2026
1 check passed
@alberttwong
alberttwong deleted the claude/nodejs-20-github-actions-713212 branch November 23, 2026 00:19
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.

1 participant