diff --git a/rust/utils/run-locally/src/ethereum/mod.rs b/rust/utils/run-locally/src/ethereum/mod.rs index cee390794..8abed1f85 100644 --- a/rust/utils/run-locally/src/ethereum/mod.rs +++ b/rust/utils/run-locally/src/ethereum/mod.rs @@ -19,12 +19,14 @@ mod multicall; pub fn start_anvil(config: Arc) -> AgentHandles { log!("Installing typescript dependencies..."); let yarn_monorepo = Program::new("yarn").working_dir(MONOREPO_ROOT_PATH); - yarn_monorepo.clone().cmd("install").run().join(); if !config.is_ci_env { + // test.yaml workflow installs dependencies + yarn_monorepo.clone().cmd("install").run().join(); // don't need to clean in the CI yarn_monorepo.clone().cmd("clean").run().join(); + // test.yaml workflow builds the monorepo + yarn_monorepo.clone().cmd("build").run().join(); } - yarn_monorepo.clone().cmd("build").run().join(); if !config.is_ci_env { // Kill any existing anvil processes just in case since it seems to have issues getting cleaned up