mirror of
https://github.com/numtide/devshell.git
synced 2024-09-11 13:45:25 +03:00
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:
parent
8bdb077bbb
commit
6be947beba
10
.github/workflows/nix.yml
vendored
10
.github/workflows/nix.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user