Skip to content

Commit

Permalink
cli tests on release
Browse files Browse the repository at this point in the history
  • Loading branch information
senia-psm committed Jul 9, 2024
1 parent 5e062be commit 24c9693
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ description = "Builds all executables in debug mode"
command = "cargo"
args = ["build", "--workspace", "--bins"]

[tasks.build-bins-release]
description = "Builds all executables in debug mode"
command = "cargo"
args = ["build", "--workspace", "--bins", "--release"]

[tasks.build-worker-service]
description = "Builds the worker-service"
command = "cargo"
Expand Down Expand Up @@ -253,7 +258,7 @@ args = [

[tasks.cli-tests]
description = "Runs CLI tests only"
dependencies = ["build-bins"]
dependencies = ["build-bins-release"]
env = { "RUST_LOG" = "info", "RUST_BACKTRACE" = "1" }
command = "cargo"
args = [
Expand Down
2 changes: 1 addition & 1 deletion golem-cli/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl CliLive {
let config_dir = PathBuf::from(format!("../target/cli_conf/{conf_dir_name}"));
let _ = fs::remove_dir_all(&config_dir);

let golem_cli_path = PathBuf::from("../target/debug/golem-cli");
let golem_cli_path = PathBuf::from("../target/release/golem-cli");

println!(
"CLI with component port {} and worker port {}",
Expand Down

0 comments on commit 24c9693

Please sign in to comment.