Jelajahi Sumber

ci: run tests when building with nix

sbatial 2 tahun lalu
induk
melakukan
61bf30f742
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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