Repository navigation
chore(ci): modernize test and release toolchains - #325
Open
illuminati1911 wants to merge 4 commits into
Open
illuminati1911 wants to merge 4 commits into
illuminati1911 wants to merge 4 commits into
Conversation
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.
Issue
The release workflow still installs Node.js 14, which is end-of-life. The test and release workflows also use older GitHub Actions versions. The release process should not depend on a Node.js version that no longer receives fixes.
Fix
Update the workflow actions and run releases on Node.js 24. Run pinned versions of
semantic-releaseand its plugins directly withnpm exec: an updated wrapper treated an npm update notice as a failure even though installation succeeded.Pin all five action references to full commit SHAs and limit the default Actions token in both workflows to
contents: read. The separate release credential, release branch, Go build and test commands, coverage report, and supported Go versions remain unchanged.Verification
actionlintpassed for both workflows. The Go build, a race-enabled smoke test, and coverage-profile parsing passed. Verified the pinned release CLI and plugins on Node.js 24.The hosted Go build and race tests and the GitHub Actions security scan passed.
Codecov attempted to upload coverage, but rejected the upload with
Token required because branch is protected. This did not fail the CI job. Release publishing has not been tested.Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #324 🦕