From 4680b96d886ac547e58d7d9e982060a3f2ce2a55 Mon Sep 17 00:00:00 2001 From: Willem Wyndham Date: Tue, 19 Nov 2024 15:50:38 -0500 Subject: [PATCH] fix: actually test in CI --- .github/workflows/rpc-tests.yml | 7 +++++-- cmd/crates/soroban-test/src/lib.rs | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rpc-tests.yml b/.github/workflows/rpc-tests.yml index 75b6d7760..778cc6525 100644 --- a/.github/workflows/rpc-tests.yml +++ b/.github/workflows/rpc-tests.yml @@ -39,7 +39,10 @@ jobs: target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - run: rustup update - - run: cargo build - run: rustup target add wasm32-unknown-unknown - run: make build-test-wasms - - run: SOROBAN_PORT=8000 cargo test --features it --package soroban-test --test it -- integration + - name: install libudev-dev + run: | + sudo apt install -y libudev-dev + - run: cargo build --features emulator-tests + - run: SOROBAN_PORT=8000 cargo test --features it --features emulator-tests --package soroban-test --test it -- integration diff --git a/cmd/crates/soroban-test/src/lib.rs b/cmd/crates/soroban-test/src/lib.rs index 4956521e1..b10b32ec1 100644 --- a/cmd/crates/soroban-test/src/lib.rs +++ b/cmd/crates/soroban-test/src/lib.rs @@ -311,7 +311,10 @@ impl TestEnv { } #[cfg(feature = "emulator-tests")] - pub async fn speculos_container(ledger_device_model: &str) -> testcontainers::ContainerAsync { + pub async fn speculos_container( + ledger_device_model: &str, + ) -> testcontainers::ContainerAsync + { use stellar_ledger::emulator_test_support::{ enable_hash_signing, get_container, wait_for_emulator_start_text, };