Skip to content

Commit

Permalink
Merge pull request #1 from phatblat/add-justfile
Browse files Browse the repository at this point in the history
✨ Initial justfile recipes
  • Loading branch information
phatblat authored Feb 25, 2024
2 parents 5fd0802 + 4a490b2 commit f9c807f
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--action-offline-mode
--container-architecture linux/amd64
--platform macos-14=-self-hosted
--pull=false
--remote-name phatblat
--reuse
--secret-file .secrets
45 changes: 45 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 --login -eo pipefail {0}
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
- uses: actions/checkout@v4
- name: 📲 Install `just`
run: |
which mise
mise settings set experimental true
mise install --verbose
mise list --verbose
- name: 🚨 Lint
run: just lint
10 changes: 10 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#
# ~/.mise.toml
# https://mise.jdx.dev/configuration.html
#

[tools]
just = "1.24.0"

[settings]
experimental = true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 🦾 `just` Experiments

Playing around with [`just`](https://just.systems/).

## 📄 License

Expand Down
9 changes: 9 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
#!/usr/bin/env -S just --justfile
# ^ A shebang isn't required, but allows a justfile to be executed
# like a script, with `./justfile test`, for example.

# initial recipe
default:
echo 'Hello, world!'

# lint
lint:
just --unstable --fmt --check

0 comments on commit f9c807f

Please sign in to comment.