Repository navigation
Move GitHub Actions off Node 20 and fix flaky CI steps - #410
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
GitHub runners now force Node 20 actions onto Node 24 and warn that
actions/setup-java@v4will get no more updates. Three of the last four Continuous Integration runs onmasteralso failed:setup-javafailed withgzip: stdin: not in gzip formatwhile downloading Temurin 8u514. The release asset downloads fine now, so this was a bad response from GitHub's release CDN.codecov/codecov-action@v4.0.1crashed withError: write EPIPEafter the Codecov API returned HTML instead of JSON.What changed
actions/checkoutactions/setup-javas4u/setup-maven-actioncodecov/codecov-actionrelease-drafter/release-drafterAll of them run on Node 24 or are composite actions.
fail_ci_if_erroroff, so a Codecov outage no longer fails the build.java-distribution: temurinandmaven-version: 3.9.2so the build stays on the Temurin 8 JDK thatsetup-javainstalls. Its built-in checkout is turned off because the job already checks out the project.::set-outputis replaced with$GITHUB_OUTPUT, and the retiredadoptdistribution becomestemurin.github.tokenby default, so theGITHUB_TOKENenv var is gone. The existing config uses no v7-incompatible keys.Testing
master.🤖 Generated with Claude Code