mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-09 15:38:12 +01:00
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:
parent
a1ec752ecd
commit
3b82331556
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user