ci: testing conditionals

This commit is contained in:
notohh 2023-06-18 18:27:22 -04:00
parent 3fadc82320
commit 09f00391ac
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -1,11 +1,19 @@
variables:
- &when_path
- "*.nix"
pipeline:
check:
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
- nix flake check
when:
path: *when_path
fmt:
image: nixos/nix
commands:
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
- nix run nixpkgs#alejandra -- -c .
when:
path: *when_path