ci: readd checks

This commit is contained in:
notohh 2024-01-23 20:00:57 -05:00
parent 41db4a0d21
commit 7e0f689853
Signed by: notohh
GPG key ID: BD47506D475EE86D

15
.woodpecker/checks.yml Normal file
View file

@ -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 .