Skip to content

Commit 62d214a

Browse files
authored
Startup quickstart before running ledger tests. (#2575)
1 parent bc9282d commit 62d214a

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ledger-emulator.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
CI_TESTS: true
3535
TEST_THREADS: ${{ contains(matrix.sys, 'macos') && '--test-threads=1' || '' }} # macOS has limited resources, so we run tests (that rely on `testcontainers`) with 1 thread
3636
steps:
37+
- uses: stellar/quickstart@main
38+
with:
39+
tag: future
3740
- uses: actions/checkout@v6
3841

3942
- uses: stellar/actions/rust-cache@main
@@ -67,6 +70,8 @@ jobs:
6770
run: sudo apt update && sudo apt install -y libudev-dev libdbus-1-dev
6871
if: runner.os == 'Linux'
6972

73+
- run: RUST_BACKTRACE=1 make build-test-wasms
74+
7075
- run: RUST_BACKTRACE=1 cargo test --manifest-path cmd/crates/stellar-ledger/Cargo.toml --features "emulator-tests" -- --nocapture $TEST_THREADS
7176

7277
- run: RUST_BACKTRACE=1 cargo build --features emulator-tests,additional-libs

cmd/crates/soroban-test/tests/it/emulator.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ async fn invoke_auth_with_ledger_identity(ledger_device_model: &str, hd_path: u3
124124
.assert()
125125
.success();
126126

127+
sandbox
128+
.new_assert_cmd("keys")
129+
.arg("fund")
130+
.arg("testone")
131+
.assert()
132+
.success();
133+
127134
let addr = sandbox
128135
.new_assert_cmd("keys")
129136
.arg("address")

0 commit comments

Comments
 (0)