diff --git a/.woodpecker/checks.yml b/.woodpecker/checks.yml new file mode 100644 index 0000000..3540e45 --- /dev/null +++ b/.woodpecker/checks.yml @@ -0,0 +1,15 @@ +when: + - path: + include: ['*.nix'] + exclude: ['*.md', 'docs/**', '.woodpecker/*.yaml', '*.js', '*.lua', '*.scss', '*.nu'] +steps: + check: + image: nixos/nix + commands: + - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf + - nix flake check + fmt: + image: nixos/nix + commands: + - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf + - nix run nixpkgs#alejandra -- -c .