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:
|
pipeline:
|
||||||
check:
|
check:
|
||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
commands:
|
commands:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
- nix flake check
|
- nix flake check
|
||||||
|
when:
|
||||||
|
path: *when_path
|
||||||
fmt:
|
fmt:
|
||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
commands:
|
commands:
|
||||||
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
||||||
- nix run nixpkgs#alejandra -- -c .
|
- nix run nixpkgs#alejandra -- -c .
|
||||||
|
when:
|
||||||
|
path: *when_path
|
||||||
|
|
Loading…
Reference in a new issue