Skip to content

Commit

Permalink
👷🏻‍♂️ Switch mise installation to use script, use hook-env to prime C…
Browse files Browse the repository at this point in the history
…I shell
  • Loading branch information
phatblat committed Feb 25, 2024
1 parent 5cbdc3d commit fb36470
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,26 @@ jobs:
steps:
- name: 📲 Install Tools
run: |
which mise
if [[ ! -x "$(command -v mise)" ]]; then
curl --no-progress-meter https://mise.jdx.dev/install.sh | sh
fi
which mise
# MISE is installed to ~/.local/bin/mise
if [[ ! -x "~/.local/bin/mise" ]]; then
echo "~/.local/bin/mise is not executable!"
return 1
fi
echo 'export PATH="~.local/bin:$PATH";' >> ~/.bashrc
# hook-env command primes non-interactive shells
echo 'eval "$(mise hook-env --shell=bash)"' >> ~/.bashrc
# echo "eval \"\$(mise activate bash)\"" >> ~/.bashrc
source ~/.bashrc
which mise
mise settings set experimental true
mise install --verbose
mise list --verbose
echo 'eval "$(mise activate bash)"' >> ~/.bashrc
eval (mise hook-env --shell=fish)
# MISE is installed to ~/bin/mise
if [[ -x "$HOME/bin/mise" ]]; then
export PATH="$HOME/bin:$PATH"
# hook-env command primes even non-interactive shells
eval "$(mise hook-env --shell=bash)"
fi
- uses: actions/checkout@v4
- name: 🚨 Lint
run: just lint

0 comments on commit fb36470

Please sign in to comment.