Skip to content

Commit

Permalink
ci: Run tests in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 26, 2024
1 parent a6a575d commit fff8ab0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,26 @@ run *ARGS:
alias w := watch

# Run CI locally
[group('ci')]
ci:
nix run . ci

# Run CI locally in devShell (using cargo)
[group('ci')]
ci-cargo:
cargo run -p omnix-cli -- ci run

[group('ci')]
# Do clippy checks for all crates
[group('ci-steps')]
clippy:
cargo clippy --release --locked --all-targets --all-features -- --deny warnings
cargo clippy --release --locked --all-targets --all-features --workspace -- --deny warnings

[group('ci')]
# Build cargo doc for all crates
[group('ci-steps')]
cargo-doc:
cargo doc --release --all-features --workspace

# Run cargo test for all crates
[group('ci-steps')]
cargo-test:
cargo doc --release --all-features --workspace
2 changes: 1 addition & 1 deletion nix/modules/flake-parts/om.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
};
cargo-tests = {
type = "devshell";
command = [ "cargo" "test" ];
command = [ "just" "cargo-test" ];
systems = [ "x86_64-linux" "aarch64-darwin" ]; # Avoid emulated systems
};
cargo-clippy = {
Expand Down

0 comments on commit fff8ab0

Please sign in to comment.