Skip to content

Commit

Permalink
fix: actually test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Nov 19, 2024
1 parent 09eff2f commit 4680b96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/rpc-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion cmd/crates/soroban-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ impl TestEnv {
}

#[cfg(feature = "emulator-tests")]
pub async fn speculos_container(ledger_device_model: &str) -> testcontainers::ContainerAsync<stellar_ledger::emulator_test_support::speculos::Speculos> {
pub async fn speculos_container(
ledger_device_model: &str,
) -> testcontainers::ContainerAsync<stellar_ledger::emulator_test_support::speculos::Speculos>
{
use stellar_ledger::emulator_test_support::{
enable_hash_signing, get_container, wait_for_emulator_start_text,
};
Expand Down

0 comments on commit 4680b96

Please sign in to comment.