-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use salt for sim test and separate CI tests
- Loading branch information
1 parent
7537edb
commit 2d22fb4
Showing
2 changed files
with
46 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,49 @@ | ||
name: RPC Tests | ||
on: | ||
push: | ||
branches: [main, release/**] | ||
pull_request: | ||
push: | ||
branches: [main, release/**] | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }} | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: test RPC | ||
runs-on: ubuntu-22.04 | ||
services: | ||
rpc: | ||
image: stellar/quickstart:testing | ||
ports: | ||
- 8000:8000 | ||
env: | ||
ENABLE_LOGS: true | ||
ENABLE_SOROBAN_DIAGNOSTIC_EVENTS: true | ||
NETWORK: local | ||
PROTOCOL_VERSION: 22 | ||
options: >- | ||
--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\"'" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 50 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- run: rustup update | ||
- run: rustup target add wasm32-unknown-unknown | ||
- run: make build-test-wasms | ||
- 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 | ||
test: | ||
name: test RPC | ||
runs-on: ubuntu-22.04 | ||
services: | ||
rpc: | ||
image: stellar/quickstart:testing | ||
ports: | ||
- 8000:8000 | ||
env: | ||
ENABLE_LOGS: true | ||
ENABLE_SOROBAN_DIAGNOSTIC_EVENTS: true | ||
NETWORK: local | ||
PROTOCOL_VERSION: 22 | ||
options: >- | ||
--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\"'" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 50 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- run: rustup update | ||
- run: rustup target add wasm32-unknown-unknown | ||
- run: make build-test-wasms | ||
- 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 --package soroban-test --test it -- integration | ||
- run: SOROBAN_PORT=8000 cargo test --features it --features emulator-tests --package soroban-test --test it -- integration::emulator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters