ci: add woodpecker workflow for checking flake files
Some checks failed
ci/woodpecker/push/check-flake-files Pipeline failed
ci/woodpecker/push/frontend Pipeline was successful

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-06-19 22:19:44 +02:00
parent ebdc89c63f
commit e21894a929
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A

View file

@ -0,0 +1,22 @@
---
when:
- event: push
- event: pull_request
path:
'flakes/**/*.toml'
steps:
- name: build
image: docker.io/nixos/nix
environment:
NIX_CONFIG: 'experimental-features = nix-command flakes'
RUST_LOG: debug
commands:
- |
for f in flakes/**/*.toml; do
nix run --accept-flake-config .#flake-info -- --json group "$f" "$(basename "$f" .toml)" --report
if [[ -f report.txt ]]; then
cat report.txt
exit 1
fi
done