Skip to content

Commit ee89504

Browse files
committed
adds foundry action
1 parent 619ce11 commit ee89504

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.github/workflows/rust-ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ on:
55
branches: [main]
66
pull_request:
77

8-
# simplest example of using the rust-base action
98
jobs:
9+
install-foundry:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Install Foundry
13+
uses: foundry-rs/foundry-toolchain@v1
14+
- name: Anvil Version
15+
run: anvil --version
16+
1017
rust-base:
18+
needs: install-foundry
1119
uses: init4tech/actions/.github/workflows/rust-base.yml@main
1220
with:
1321
requires-private-deps: true
1422
secrets:
15-
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
16-
23+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ path = "bin/builder.rs"
2121
name = "transaction-submitter"
2222
path = "bin/submit_transaction.rs"
2323

24+
[features]
25+
integration = []
26+
2427
[dependencies]
2528
init4-bin-base = "0.3"
2629

tests/block_builder_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mod tests {
2727
/// This test sets up a simulated environment using Anvil, creates a block builder,
2828
/// and verifies that the block builder can successfully build a block containing
2929
/// transactions from multiple senders.
30-
#[ignore = "integration test"]
30+
#[cfg(feature = "integration")]
3131
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
3232
async fn test_handle_build() {
3333
setup_logging();

0 commit comments

Comments
 (0)