From 96453a4368d89783efd75f3c961533104eed3914 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sun, 20 Oct 2024 21:35:10 -0500 Subject: [PATCH] Add build and test steps to the pipeline --- .gitlab-ci.yml | 17 ++++++++++++++++- flake.nix | 1 - 2 files changed, 16 insertions(+), 2 deletions(-) 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; }; };