diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1e1d4cfa..f86d3181 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -21,4 +21,3 @@ jobs: authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - run: nix flake check --all-systems --builders "" - run: nix flake check --all-systems --builders "" ./templates/_wrapper/simple --no-write-lock-file - - run: nix build .#docs --show-trace --builders "" diff --git a/flake-modules/checks.nix b/flake-modules/checks.nix index da2930ae..bb168bf8 100644 --- a/flake-modules/checks.nix +++ b/flake-modules/checks.nix @@ -1,31 +1,38 @@ { perSystem = { pkgs, + config, makeNixvimWithModuleUnfree, makeNixvimWithModule, ... }: { - checks = { - tests = import ../tests { - inherit pkgs; - inherit (pkgs) lib; - makeNixvim = configuration: - makeNixvimWithModuleUnfree { - module = { - config = configuration; + checks = + { + tests = import ../tests { + inherit pkgs; + inherit (pkgs) lib; + makeNixvim = configuration: + makeNixvimWithModuleUnfree { + module = { + config = configuration; + }; }; - }; - }; + }; - extra-args-tests = import ../tests/extra-args.nix { - inherit pkgs; - inherit makeNixvimWithModule; - }; + extra-args-tests = import ../tests/extra-args.nix { + inherit pkgs; + inherit makeNixvimWithModule; + }; - lib-tests = import ../tests/lib-tests.nix { - inherit pkgs; - inherit (pkgs) lib; - }; - }; + lib-tests = import ../tests/lib-tests.nix { + inherit pkgs; + inherit (pkgs) lib; + }; + } + # Do not check if documentation builds fine on darwin as it fails: + # > sandbox-exec: pattern serialization length 69298 exceeds maximum (65535) + // (pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) { + inherit (config.packages) docs; + }); }; }