feat(ci): sanity-check template functionality

by running a trivial command inside the template flake, overriding the
`devshell` input to the current ref/rev.
This commit is contained in:
Matt Schreiber 2024-03-07 15:21:37 -05:00
parent 8bdb077bbb
commit 6be947beba
No known key found for this signature in database

View File

@ -41,7 +41,15 @@ jobs:
name: numtide
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check
- run: nix develop -c echo OK
- name: Run devshell entry sanity checks
run: |
nix develop -c echo OK
for tmpl in ./templates/*; do
if ! [ -d "$tmpl" ]; then
continue
fi
nix develop --override-input devshell . "$tmpl" -c echo OK
done
- name: Run nix flake archive
run: nix flake archive
docs: