From 53ae879a7cb4d884199ddbdf6a7c38d794b4276f Mon Sep 17 00:00:00 2001 From: dylan Date: Mon, 12 May 2025 23:18:08 -0600 Subject: [PATCH] adds foundry action --- .github/workflows/rust-ci.yml | 5 ++--- Cargo.toml | 3 +++ tests/block_builder_test.rs | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 1fa97d5..35c7098 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -5,12 +5,11 @@ on: branches: [main] pull_request: -# simplest example of using the rust-base action jobs: rust-base: uses: init4tech/actions/.github/workflows/rust-base.yml@main with: requires-private-deps: true + install-foundry: true secrets: - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index e732185..dd8b233 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,9 @@ path = "bin/builder.rs" name = "transaction-submitter" path = "bin/submit_transaction.rs" +[features] +integration = [] + [dependencies] init4-bin-base = "0.3" diff --git a/tests/block_builder_test.rs b/tests/block_builder_test.rs index f1c0eeb..79d4ee6 100644 --- a/tests/block_builder_test.rs +++ b/tests/block_builder_test.rs @@ -26,7 +26,7 @@ mod tests { /// This test sets up a simulated environment using Anvil, creates a block builder, /// and verifies that the block builder can successfully build a block containing /// transactions from multiple senders. - #[ignore = "integration test"] + #[cfg(feature = "integration")] #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_handle_build() { setup_logging();