Skip to content

chore(nvim): better format for tools in status bar (#87) #323

chore(nvim): better format for tools in status bar (#87)

chore(nvim): better format for tools in status bar (#87) #323

Workflow file for this run

---
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 {} \;