Fix Android CI: restore PATH after mise-action stopped leaking runner PATH - #7
Merged
Conversation
gsanta
approved these changes
Jul 28, 2026
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.
Summary
Run Android Testsstep setPATH: .../emulator:.../platform-tools:${{ env.PATH }}, relying on${{ env.PATH }}(GitHub Actions' env context) to hold the runner's real$PATH.jdx/mise-actionhad a bug (jdx/mise-action#555) that leaked the entire runner PATH intoGITHUB_ENV. That bug was intentionally fixed in mise-action v4.2.1, and since this workflow pins the floating@v4tag, CI runs after that release started resolvingenv.PATHto empty — collapsing the step's PATH down to just the two SDK dirs and wiping out/bin, causingUnable to locate executable file: sh.@v4re-resolves independent of the checked-out commit).Changes
env: PATH: ...${{ env.PATH }}override with a dedicated step that appends the Android SDKemulator/platform-toolsdirs to$GITHUB_PATH, which correctly extends the real PATH regardless of whatmise-actiondoes withGITHUB_ENV.Test plan
android-testjob in CI passes on this PR