From d0a41725750902cd5fdb78cfc024350256854494 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Tue, 28 Oct 2025 21:24:52 +0100 Subject: [PATCH] chore: add ci job to ensure formatting is correct --- .github/workflows/format.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/format.yaml diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml new file mode 100644 index 0000000..1856003 --- /dev/null +++ b/.github/workflows/format.yaml @@ -0,0 +1,24 @@ +name: "format" +on: + pull_request: + push: + branches: [ "main" ] + +jobs: + format: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v5 + - name: Install Nix + uses: cachix/install-nix-action@v31 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Setup Caching + uses: cachix/cachix-action@v16 + with: + name: selfhostblocks + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - name: Check Formatting + run: | + find . -name '*.nix' | nix fmt -- --ci