β¨ Initial justfile recipes #4
Workflow file for this run
This file contains 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
# | |
# .github/workflows/pr-checks.yml | |
# | |
# https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables | |
--- | |
name: pr-checks | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: macos-14 | |
defaults: | |
run: | |
shell: bash | |
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 | |
- uses: actions/checkout@v4 | |
- name: π¨ Lint | |
run: just lint |