diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a410d7c..5bc7bd4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,24 @@ stages: - check + - build check: stage: check tags: - nix script: - - nix flake check + - nix develop -c pre-commit run --all-files + +build: + stage: build + tags: + - nix + script: + - nix build + +test: + stage: build + tags: + - nix + script: + - nix develop -c cargo test diff --git a/flake.nix b/flake.nix index da77b84..c47dfa6 100644 --- a/flake.nix +++ b/flake.nix @@ -88,7 +88,6 @@ trim-trailing-whitespace.enable = true; # Rust hooks cargo-check.enable = true; - clippy.enable = true; rustfmt.enable = true; }; };