From fb36470e81665dc8a0da15cfda13d6fa97023adb Mon Sep 17 00:00:00 2001 From: Ben Chatelain Date: Sun, 25 Feb 2024 11:59:28 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=F0=9F=8F=BB=E2=80=8D=E2=99=82?= =?UTF-8?q?=EF=B8=8F=20Switch=20mise=20installation=20to=20use=20script,?= =?UTF-8?q?=20use=20hook-env=20to=20prime=20CI=20shell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-checks.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 7857e9c..ad9a238 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -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