ci: add flake test

- Check flake
- Check nixos-search doc generation
This commit is contained in:
Erik Arvstedt
2021-12-12 16:21:12 +01:00
parent d3c8d7bd6f
commit 1ef40ac230
3 changed files with 34 additions and 0 deletions
+7
View File
@@ -29,3 +29,10 @@ task:
- echo "sandbox = true" >> /etc/nix/nix.conf
- export NIX_PATH="nixpkgs=$(nix eval --raw -f pkgs/nixpkgs-pinned.nix nixpkgs)"
- nix run -f '<nixpkgs>' bash coreutils cachix -c ./test/ci/build.sh
- name: flake
container:
image: nixpkgs/nix-flakes
build_script:
- nix flake check
- ./test/nixos-search/ci-test.sh