fix(wezterm): set default program #19
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
--- | |
name: nix | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
name: nix flake check | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v9 | |
- name: Running `nix flake check` on flakes | |
run: | | |
files=$(find . -name '*flake.nix') | |
IFS=$'\n'; for file in $files; do | |
flake_dir=$(dirname "$file") | |
echo "Running nix flake check on $file" | |
nix flake check "$flake_dir" | |
done | |
formatting: | |
runs-on: ubuntu-latest | |
name: alejandra | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v9 | |
- name: installing alejandra | |
# We're reusing the version from the neovim configuration so that we get expect | |
# exactly the same style locally and in the CI. | |
run: nix profile install ./flakes/nvim/#alejandra | |
- name: running alejandra on nix scripts | |
run: | | |
files=$(find . -name '*.nix') | |
IFS=$'\n'; for file in $files; do | |
echo "Running alejandra on $file" | |
alejandra --check "$file" | |
done |