mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
tests: remove format meta test
This test requires copying the Home Manager checkout to the Nix store, which seems to require too much memory for the CI jobs. Instead simply run the format script directly.
This commit is contained in:
parent
b9b8a42fda
commit
9fe15dc83b
4 changed files with 1 additions and 29 deletions
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
|
@ -18,5 +18,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: nix-community
|
name: nix-community
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
|
- run: ./format -c
|
||||||
- run: nix-shell . -A install
|
- run: nix-shell . -A install
|
||||||
- run: nix-shell --pure tests -A run.all
|
- run: nix-shell --pure tests -A run.all
|
||||||
|
|
|
@ -76,7 +76,6 @@ import nmt {
|
||||||
] ++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
|
] ++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
|
||||||
./modules/targets-darwin
|
./modules/targets-darwin
|
||||||
] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
|
] ++ lib.optionals pkgs.stdenv.hostPlatform.isLinux [
|
||||||
./meta # Suffices to run on one platform.
|
|
||||||
./modules/misc/debug
|
./modules/misc/debug
|
||||||
./modules/misc/numlock
|
./modules/misc/numlock
|
||||||
./modules/misc/pam
|
./modules/misc/pam
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
{ meta-formatting = ./formatting.nix; }
|
|
|
@ -1,27 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
|
|
||||||
pinnedNixpkgs = builtins.fetchTarball {
|
|
||||||
url =
|
|
||||||
"https://github.com/NixOS/nixpkgs/archive/05f0934825c2a0750d4888c4735f9420c906b388.tar.gz";
|
|
||||||
sha256 = "1g8c2w0661qn89ajp44znmwfmghbbiygvdzq0rzlvlpdiz28v6gy";
|
|
||||||
};
|
|
||||||
|
|
||||||
pinnedPkgs = import pinnedNixpkgs { };
|
|
||||||
|
|
||||||
in {
|
|
||||||
config = {
|
|
||||||
nmt.script = ''
|
|
||||||
PATH="${with pinnedPkgs; lib.makeBinPath [ findutils nixfmt ]}:$PATH"
|
|
||||||
cd ${../..}
|
|
||||||
if ! ${pkgs.runtimeShell} format -c; then
|
|
||||||
fail "${''
|
|
||||||
Expected source code to be formatted with nixfmt but it was not.
|
|
||||||
This error can be resolved by running the './format' in the project root directory.''}"
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue