ci: Add check for formatting

Note that `nix fmt` is used here to ensure that the formatter for the
flake can be changed in the future without having to change this file.
This commit is contained in:
Donovan Glover 2024-04-05 16:51:54 -04:00
parent a1ec752ecd
commit 3b82331556
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -13,3 +13,10 @@ jobs:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- run: nix flake check
format:
name: nix fmt -- --check **/*.nix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- run: nix fmt -- --check **/*.nix