From 787480b8179a8536e25107bf4b3e7edb0bae13a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Qui=C3=B1ones?= Date: Fri, 18 Apr 2025 15:32:18 -0500 Subject: [PATCH] ci: add workflow to check nix files format --- .github/workflows/style.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/style.yml 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