-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update dependencies and refactor test code 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 * fix: docs * fix: consolidate the rpc testing with bindings * fix: set SOROBAN_FEE=10000 * fix: change port to allow for local CI testing and increase fee * fix: port 8000 important * fix: use newer version of RPC * fix: increase fee again * fix: update quickstart to latest latest * fix: deploy contract directly and remove fee args * fix: fmt and ensure stderr for deployoy * fix: don't install contract if it is already installed * fix: try fee arg * fix: fmt * fix: using quickstart:testing * fix: add sleep to dotenv tests * fix: add more sleep to dotenv tests * fix: use instruction and remove sleep * fix: use u32::max * :fix: u32::max/2 * fix: add padding to instruction from sim if one is not provided * fix: make async fn * fix: add back sleep * fix: add wait back in * fix: md-gen * fix: use async_trait
- Loading branch information
1 parent
3cffbbb
commit 4b3fac8
Showing
30 changed files
with
884 additions
and
567 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
name: RPC Tests | ||
on: | ||
push: | ||
branches: [main, release/**] | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: test RPC | ||
runs-on: ubuntu-22.04 | ||
services: | ||
rpc: | ||
image: stellar/quickstart:testing@sha256:7f074dddaf081b21d273f7346325cc1017c38bbee7b839f8b633b280a663232d | ||
ports: | ||
- 8000:8000 | ||
env: | ||
ENABLE_LOGS: true | ||
NETWORK: local | ||
ENABLE_SOROBAN_RPC: true | ||
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@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: 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 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.