feat(nvim): add shortcut for live grepping (#83) #312
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@v3 | |
- uses: cachix/install-nix-action@v18 | |
- name: Running `nix flake check` on flakes | |
run: | | |
files=$(find . -name '*flake.nix') | |
IFS=$'\n'; for file in $files; do | |
flake_dir=$(dirname "$file") | |
nix flake check "$flake_dir" | |
done | |
formatting: | |
runs-on: ubuntu-latest | |
name: alejandra | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v18 | |
- 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: find . -name '*.nix' -exec alejandra --check {} \; |