Skip to content

Commit

Permalink
chore: update dependencies and refactor test code
Browse files Browse the repository at this point in the history
The changes in this commit update the dependencies and refactor the test code to improve readability and maintainability.
chore: remove unused code and options from test script
  • Loading branch information
willemneal committed Feb 15, 2024
1 parent 4febbe2 commit 2c7a539
Show file tree
Hide file tree
Showing 28 changed files with 795 additions and 526 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/rpc-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@

name: test-rpc

on:
push:
branches: [main, release/**]
pull_request:

jobs:
test:
name: Test against RPC
runs-on: ubuntu-22.04
services:
rpc:
image: stellar/quickstart:latest@sha256:742a649d5d9be826dd4b1a378c95b0e1833e1bcb08c3f4b9b9a8cdd03da653e3
ports:
- 9999:8000
env:
ENABLE_LOGS: true
NETWORK: local
ENABLE_SOROBAN_RPC: true
LIMITS: unlimited
options: >-
--health-cmd "curl --no-progress-meter --fail-with-body -X POST \"http://localhost:9999/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: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo build
# - run: cargo build
- run: make build-test-wasms
# - run: cargo test
- run: SOROBAN_PORT=9999 cargo test --features it --package soroban-test --test it -- integration
65 changes: 57 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion cmd/crates/soroban-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,22 @@ stellar-strkey = { workspace = true }
soroban-sdk = { workspace = true }
sep5 = { workspace = true }
soroban-cli = { workspace = true }
soroban-rpc = { workspace = true }

thiserror = "1.0.31"
sha2 = "0.10.6"
assert_cmd = "2.0.4"
assert_fs = "1.0.7"
predicates = "2.1.5"
fs_extra = "1.3.0"
toml = "0.8.10"


[dev-dependencies]
serde_json = "1.0.93"
which = { workspace = true }
tokio = "1.28.1"
walkdir = "2.4.0"

[features]
integration = []
it = []
Loading

0 comments on commit 2c7a539

Please sign in to comment.