-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.15 KB
/
pr-checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# .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 `mise`
run: |
brew update --verbose
if [[ ! -x "$(command -v mise)" ]]; then
brew install mise
fi
echo "PATH: $PATH"
which mise
command -v mise
ls -l $(command -v mise)
eval "$(mise hook-env --shell=bash)"
mise reshim
mise doctor
echo 'eval "$(mise hook-env --shell=bash)"' >> ~/.bashrc
- name: 📲 Install `just`
run: |
which mise
mise settings set experimental true
mise install --verbose
mise list --verbose
- uses: actions/checkout@v4
- name: 🚨 Lint
run: just lint