Hopefully fix the CI running pre-commit
Add a CI build step
Add a CI `cargo test` step
This commit is contained in:
Greg Hellings
2025-02-25 00:15:04 -06:00
parent 2a890a53cb
commit a2fcfb1724
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -7,4 +7,6 @@ check:
tags:
- nix
script:
- nix flake check -L
- nix develop --command pre-commit run -a
- nix build -L
- nix develop --command cargo test
+1 -1
View File
@@ -6,7 +6,7 @@ fn main() {
for mod_name in mgr.get_modules() {
let mut module = mgr.get_module(&mod_name);
println!("Module: {}", module.get_name());
let random_number: i32 = rand::rng().gen_range(1..=20);
let random_number: i32 = rand::rng().random_range(1..=20);
let random_number_str = format!("John.3.{}", random_number);
module.set_key_text(&random_number_str);
println!(