Skip to content

Commit 4e4fd3b

Browse files
committed
feat(ci): sanity-check template functionality
by running a trivial command inside the template flake, overriding the `devshell` input to the current ref/rev.
1 parent b26808a commit 4e4fd3b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/nix.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ jobs:
4141
name: numtide
4242
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
4343
- run: nix flake check
44-
- run: nix develop -c echo OK
44+
- name: Run devshell entry sanity checks
45+
run: |
46+
nix develop -c echo OK
47+
for tmpl in ./templates/*; do
48+
if ! [ -d "$tmpl" ]; then
49+
continue
50+
fi
51+
nix develop --override-input devshell . "$tmpl" -c echo OK
52+
done
4553
- name: Run nix flake archive
4654
run: nix flake archive
4755
docs:

0 commit comments

Comments
 (0)