Add build and test steps to the pipeline

This commit is contained in:
Greg Hellings
2024-10-20 21:35:10 -05:00
parent 0d095d23bf
commit 96453a4368
2 changed files with 16 additions and 2 deletions
+16 -1
View File
@@ -1,9 +1,24 @@
stages: stages:
- check - check
- build
check: check:
stage: check stage: check
tags: tags:
- nix - nix
script: 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
-1
View File
@@ -88,7 +88,6 @@
trim-trailing-whitespace.enable = true; trim-trailing-whitespace.enable = true;
# Rust hooks # Rust hooks
cargo-check.enable = true; cargo-check.enable = true;
clippy.enable = true;
rustfmt.enable = true; rustfmt.enable = true;
}; };
}; };