diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml new file mode 100644 index 0000000..1c6e968 --- /dev/null +++ b/.github/workflows/style.yml @@ -0,0 +1,16 @@ +name: Check *.nix files format +on: [push, pull_request] + +jobs: + check-formatting: + name: Check formatting + runs-on: ubuntu-latest + steps: + - name: Code checkout + uses: actions/checkout@v4 + + - name: Setup Alejandra CLI + uses: luisnquin/setup-alejandra@v1.0.0 + + - name: Check formatting + run: alejandra --check **/*.nix