Skip to content

Commit

Permalink
Add a flake check for testing the stdlib (#2061)
Browse files Browse the repository at this point in the history
* Add a flake check for testing the stdlib

* Introduce an error

* Revert "Introduce an error"

This reverts commit 07c34e5.

* Use &&
  • Loading branch information
jneem authored Oct 8, 2024
1 parent cf23a5e commit 5fd6a14
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,11 @@
pkgs.mkShell {
buildInputs = [ terraform run-terraform update-infra ];
};

stdlibTests = pkgs.runCommandLocal "stdlib-test" { }
''
${pkgs.lib.getExe self.packages."${system}".default} test ${./core/stdlib/std.ncl} && mkdir $out
'';
in
rec {
packages = {
Expand Down Expand Up @@ -725,7 +730,7 @@
# shorter. Another option would be to compile a dev dependencies version
# of cargoArtifacts. But that almost doubles the cache space.
nickelWasm = buildNickelWasm { profile = "release"; };
inherit vscodeExtension;
inherit vscodeExtension stdlibTests;
pre-commit = pre-commit-builder { };
};
}
Expand Down

0 comments on commit 5fd6a14

Please sign in to comment.