mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 03:09:35 +01:00
Add a github action step to run the tests against current master
This commit is contained in:
parent
bcd73ebf60
commit
f4638b64a1
2 changed files with 9 additions and 0 deletions
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
|
@ -23,6 +23,9 @@ jobs:
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
- run: nix-build -A checks.$(nix-instantiate --eval -E '(builtins.currentSystem)')
|
- run: nix-build -A checks.$(nix-instantiate --eval -E '(builtins.currentSystem)')
|
||||||
|
- run: |
|
||||||
|
NIX_BUILD=$(nix-build -A defaultPackage.$(nix-instantiate --eval -E '(builtins.currentSystem)'))/bin/nix-build
|
||||||
|
$NIX_BUILD --option experimental-features 'flakes' --impure --expr 'builtins.getFlake (builtins.toPath ./.).lib.testAgainst.x86_64-linux (builtins.getFlake (builtins.toPath ./.)).defaultPackage.x86_64-linux'
|
||||||
check_cachix:
|
check_cachix:
|
||||||
name: Cachix secret present for installer tests
|
name: Cachix secret present for installer tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -504,6 +504,12 @@
|
||||||
} "touch $out";
|
} "touch $out";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
lib = {
|
||||||
|
testAgainst = forAllSystems (system:
|
||||||
|
testNixVersions nixpkgsFor.${system} nixpkgsFor.${system}.nix
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
packages = forAllSystems (system: {
|
packages = forAllSystems (system: {
|
||||||
inherit (nixpkgsFor.${system}) nix;
|
inherit (nixpkgsFor.${system}) nix;
|
||||||
} // (nixpkgs.lib.optionalAttrs (builtins.elem system linux64BitSystems) {
|
} // (nixpkgs.lib.optionalAttrs (builtins.elem system linux64BitSystems) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue