ci: readd checks
This commit is contained in:
parent
41db4a0d21
commit
7e0f689853
1 changed files with 15 additions and 0 deletions
15
.woodpecker/checks.yml
Normal file
15
.woodpecker/checks.yml
Normal 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 .
|
Loading…
Reference in a new issue