Add Bun runtime support for JavaScript actions#4126
Open
polRk wants to merge 2 commits intoactions:mainfrom
Open
Add Bun runtime support for JavaScript actions#4126polRk wants to merge 2 commits intoactions:mainfrom
polRk wants to merge 2 commits intoactions:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for using Bun as a JavaScript runtime for GitHub Actions by allowing using: "bun" in action manifests. The implementation includes automatic download and installation of Bun v1.3.2 across all supported platforms (Windows x64, macOS x64/ARM64, Linux x64/ARM64) with special handling for Alpine containers.
Key Changes:
- Added Bun runtime detection and execution logic to the Node script action handler
- Updated action manifest validation to accept "bun" as a valid runtime option
- Modified external dependencies script to download Bun binaries for all platforms
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Misc/externals.sh | Downloads Bun v1.3.2 binaries for all platforms, including musl variants for Alpine |
| src/Runner.Worker/Handlers/StepHost.cs | Implements Bun runtime version determination with Alpine container detection |
| src/Runner.Worker/Handlers/NodeScriptActionHandler.cs | Adds Bun execution path and conditional environment variable handling |
| src/Runner.Worker/ActionManifestManager.cs | Updates manifest parser to accept "bun" as valid runtime |
| src/Runner.Worker/ActionManifestManagerLegacy.cs | Updates legacy manifest parser to accept "bun" as valid runtime |
| src/Test/L0/Worker/ActionManifestManagerL0.cs | Updates test expectations for new error messages |
| src/Test/L0/Worker/ActionManifestManagerLegacyL0.cs | Updates test expectations for new error messages |
Signed-off-by: Vladislav Polyakov <polrk@ydb.tech>
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.
using: "bun".Note: This implementation was developed with assistance from LLM.
#2846