mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-09 15:38:12 +01:00
ci: Add check for example flake config
Note that hardware-configuration.nix is created here since nix flake check will look for the presence of fileSystems.
This commit is contained in:
parent
8c25c964da
commit
3ddd42330d
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@ -27,3 +27,11 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: cachix/install-nix-action@v22
|
||||||
- run: nix fmt -- --check **/*.nix
|
- run: nix fmt -- --check **/*.nix
|
||||||
|
example:
|
||||||
|
name: nix flake check ./example
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: cachix/install-nix-action@v22
|
||||||
|
- run: ln -s hardware/laptop.nix examples/hardware-configuration.nix
|
||||||
|
- run: nix flake check ./example --no-write-lock-file
|
||||||
|
Loading…
Reference in New Issue
Block a user