Browse Source

ci: run tests when building with nix

sbatial 2 years ago
parent
commit
61bf30f742
1 changed files with 1 additions and 0 deletions
  1. 1 0
      flake.nix

+ 1 - 0
flake.nix

@@ -39,6 +39,7 @@
           # For `nix build` & `nix run`:
           default = naersk'.buildPackage {
             src = ./.;
+            doCheck = true; # run `cargo test` on build
           };
 
           # Run `nix build .#check` to check code