ci: add formatting check

This commit is contained in:
Antoine Martin 2022-04-10 11:57:03 +02:00
parent 4f0d45e4d5
commit 6781155bcc

View file

@ -9,6 +9,17 @@ on:
- 'flake.lock'
- '.github/workflows/*'
jobs:
format-check:
name: Format check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
- name: Run alejandra
run: nix run nixpkgs#alejandra -- --check .
flake-check:
name: Flake check
runs-on: ubuntu-latest
@ -29,7 +40,7 @@ jobs:
build-pkgs:
name: Nix packages
runs-on: ubuntu-latest
needs: [ flake-check ]
needs: [ flake-check, format-check ]
strategy:
fail-fast: false