@@ -10,37 +10,31 @@ concurrency:
1010
1111jobs :
1212 test :
13- name : test RPC
14- runs-on : ubuntu-22.04
15- services :
16- rpc :
17- image : stellar/quickstart:testing
18- ports :
19- - 8000:8000
20- env :
21- ENABLE_LOGS : true
22- ENABLE_SOROBAN_DIAGNOSTIC_EVENTS : true
23- NETWORK : local
24- PROTOCOL_VERSION : 22
25- options : >-
26- --health-cmd "curl --no-progress-meter --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}' && curl --no-progress-meter \"http://localhost:8000/friendbot\" | grep '\"invalid_field\": \"addr\"'"
27- --health-interval 10s
28- --health-timeout 5s
29- --health-retries 50
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ sys :
17+ # x64
18+ - ubuntu-latest-16-cores
19+ # ARM
20+ - ubuntu-jammy-16-cores-arm64
21+ # Intel
22+ - macos-13
23+ exclude :
24+ # Only run Linux x64 tests on pull request to save some time
25+ - sys : ${{ github.event_name != 'push' && 'ubuntu-jammy-16-cores-arm64' }}
26+ - sys : ${{ github.event_name != 'push' && 'macos-13' }}
27+ runs-on : ${{ matrix.sys }}
3028 steps :
31- - uses : actions/checkout@v4
32- - uses : actions/cache@v4
29+ - uses : stellar/quickstart@main
3330 with :
34- path : |
35- ~/.cargo/bin/
36- ~/.cargo/registry/index/
37- ~/.cargo/registry/cache/
38- ~/.cargo/git/db/
39- target/
40- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
31+ tag : testing
32+ - uses : actions/checkout@v4
33+ - uses : stellar/actions/rust-cache@main
4134 - run : rustup update
4235 - run : sudo apt update && sudo apt install -y libudev-dev libdbus-1-dev
36+ if : runner.os == 'Linux'
4337 - run : cargo build
4438 - run : rustup target add wasm32-unknown-unknown
4539 - run : make build-test-wasms
46- - run : SOROBAN_PORT=8000 cargo test --features it --package soroban-test --test it -- integration
40+ - run : SOROBAN_PORT=8000 cargo test --features it --package soroban-test --test it -- integration --test-threads=1
0 commit comments