snowflake/.woodpecker/checks.yml
2023-06-18 18:27:22 -04:00

19 lines
433 B
YAML

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