From a3c0863e5cc46278823e4c748bb99c2854fa3b9d Mon Sep 17 00:00:00 2001 From: Heemank Verma Date: Sat, 17 Aug 2024 03:18:30 +0530 Subject: [PATCH] update: Coverage CI fixes --- .github/workflows/coverage.yml | 9 +++++++-- crates/settlement-clients/ethereum/src/tests/mod.rs | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6aaa8442..b5e67475 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -2,8 +2,13 @@ name: Task - Rust Tests & Coverage on: - workflow_dispatch: - workflow_call: + pull_request_target: + branches: + - main + types: [opened, synchronize, reopened] + push: + branches-ignore: + - main jobs: coverage: diff --git a/crates/settlement-clients/ethereum/src/tests/mod.rs b/crates/settlement-clients/ethereum/src/tests/mod.rs index a082d184..274967c0 100644 --- a/crates/settlement-clients/ethereum/src/tests/mod.rs +++ b/crates/settlement-clients/ethereum/src/tests/mod.rs @@ -212,7 +212,8 @@ async fn update_state_blob_with_impersonation_works(#[case] fork_block_no: u64) #[tokio::test] #[case::typical(20468828)] async fn get_last_settled_block_typical_works(#[case] fork_block_no: u64) { - env::set_var("DEFAULT_SETTLEMENT_CLIENT_RPC", "https://eth.llamarpc.com"); + dotenvy::from_filename(&*ENV_FILE_PATH).expect("Could not load .env.test file."); + env::set_var("DEFAULT_SETTLEMENT_CLIENT_RPC", &*ETH_RPC); let TestSetup { anvil: _, ethereum_settlement_client, provider: _ } = setup_ethereum_test(fork_block_no);