ci: testing conditionals
This commit is contained in:
parent
3fadc82320
commit
09f00391ac
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue