mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
run nix flake check in CI
This commit is contained in:
parent
c1e0b7feec
commit
0849633d73
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -16,5 +16,5 @@ jobs:
|
||||
- uses: cachix/install-nix-action@v20
|
||||
- name: List flake structure
|
||||
run: nix flake show
|
||||
- name: Run unit tests (flake)
|
||||
run: nix build -L
|
||||
- name: Run tests
|
||||
run: nix flake check -L
|
||||
|
10
flake.nix
10
flake.nix
@ -81,6 +81,7 @@
|
||||
packages = forAllSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages."${system}";
|
||||
in rec {
|
||||
default = nixos-generate;
|
||||
nixos-generators =
|
||||
nixpkgs.lib.warn ''
|
||||
|
||||
@ -107,7 +108,14 @@
|
||||
};
|
||||
});
|
||||
|
||||
defaultPackage = forAllSystems (system: self.packages."${system}".nixos-generate);
|
||||
# legacy flake schema compat
|
||||
defaultPackage =
|
||||
forAllSystems (system: self.packages.${system}.default);
|
||||
|
||||
checks = forAllSystems (system: {
|
||||
inherit (self.packages.${system})
|
||||
nixos-generate;
|
||||
});
|
||||
|
||||
devShell = forAllSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages."${system}";
|
||||
|
Loading…
Reference in New Issue
Block a user