flake.nix: Add checks for integration tests
This commit is contained in:
parent
b7262f6781
commit
941f48bd81
2 changed files with 18 additions and 3 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
|||
name: colmena
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- run: nix flake check
|
||||
- run: nix flake check --no-build
|
||||
if: ${{ !contains(matrix.nix.version, '2.3') && runner.os != 'macOS' }}
|
||||
|
||||
- name: Build Colmena
|
||||
|
|
19
flake.nix
19
flake.nix
|
@ -13,7 +13,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils, ... }: let
|
||||
outputs = { self, nixpkgs, stable, flake-utils, ... } @ inputs: let
|
||||
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
colmenaOptions = import ./src/nix/hive/options.nix;
|
||||
colmenaModules = import ./src/nix/hive/modules.nix;
|
||||
|
@ -79,8 +79,23 @@
|
|||
python3 python3Packages.flake8
|
||||
];
|
||||
};
|
||||
checks = let
|
||||
inputsOverlay = final: prev: {
|
||||
_inputs = inputs;
|
||||
};
|
||||
in if pkgs.stdenv.isLinux then import ./integration-tests {
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ self.overlays.default inputsOverlay ];
|
||||
};
|
||||
pkgsStable = import stable {
|
||||
inherit system;
|
||||
overlays = [ self.overlays.default inputsOverlay ];
|
||||
};
|
||||
} else {};
|
||||
}) // {
|
||||
overlay = final: prev: {
|
||||
overlay = self.overlays.default;
|
||||
overlays.default = final: prev: {
|
||||
colmena = final.callPackage ./package.nix { };
|
||||
};
|
||||
nixosModules = {
|
||||
|
|
Loading…
Reference in a new issue