feat(xtask): add cargo act command with improved PATH handling#18
Merged
zouguangxian merged 1 commit intodevfrom Jan 19, 2026
Merged
feat(xtask): add cargo act command with improved PATH handling#18zouguangxian merged 1 commit intodevfrom
zouguangxian merged 1 commit intodevfrom
Conversation
…tion guide - Add cargo act subcommand to run GitHub Actions locally via nektos/act - Implement PATH augmentation to append ~/.local/bin and ~/bin for local CLI discovery - Add REMOTE_CONTAINERS_IPC injection for dev containers credential helper compatibility - Update README with new 'Run CI locally (act)' section including installation link - Update bootstrap script with shell reload instructions
b244e30 to
8cb4325
Compare
There was a problem hiding this comment.
Pull request overview
This PR adds a cargo act subcommand for running GitHub Actions workflows locally with improved PATH handling and documentation.
Changes:
- Implements smart PATH augmentation that appends
~/.local/binand~/binas fallbacks without overriding existing binaries - Adds documentation section for running CI locally with act installation guidance
- Includes minor shell reload instruction improvement in bootstrap script
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| xtask/src/act.rs | Adds helper functions to append home bin directories to PATH for better local CLI discovery |
| bootstrap | Adds alternative shell reload instruction for user convenience |
| README.md | Adds "Run CI locally (act)" section with installation link and usage example, reformats existing design principles text |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ### Run CI locally (act) | ||
|
|
||
| To install `act`, visit <https://nektosact.com/> for installation instructions. |
There was a problem hiding this comment.
Corrected spelling of 'nektosact.com' to 'nektos/act.com' or the correct domain.
Suggested change
| To install `act`, visit <https://nektosact.com/> for installation instructions. | |
| To install `act`, visit <https://github.com/nektos/act> for installation instructions. |
| log "Shell integration installed into ~/.bashrc and/or ~/.zshrc" | ||
| fi | ||
| log "Please restart your shell or run 'direnv allow' to activate the environment." | ||
| log " or run 'exec \$SHELL -l' to reload your shell." |
There was a problem hiding this comment.
The indentation uses spaces instead of a tab, inconsistent with the line above (line 444). Shell scripts in this file appear to use tabs for indentation.
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.
This PR adds improve
cargo actsubcommand to run GitHub Actions workflows locally using nektos/act.Changes
~/.local/binand~/binto PATH as fallback (doesn't override existing binaries)Usage