-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Run the ITs against multiple API providers
- Loading branch information
Showing
3 changed files
with
67 additions
and
6 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
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,31 @@ | ||
name: rust-integration-tests-chainstack | ||
on: | ||
schedule: | ||
- cron: "0 8,20 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
integration: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: build beerus | ||
run: cargo build -p beerus-cli --release | ||
|
||
- name: start beerus RPC on MAINNET | ||
env: | ||
ETH_EXECUTION_RPC: ${{ secrets.ETH_EXECUTION_RPC_MAINNET }} | ||
STARKNET_RPC: ${{ secrets.STARKNET_RPC_0_6_0_MAINNET_CHAINSTACK }} | ||
# Start Beerus, then try to reach the port every second for 60 seconds. | ||
run: ./target/release/beerus & for i in {1..60}; do timeout 1 bash -c "echo > /dev/tcp/localhost/3030" 2> /dev/null && break || sleep 1; done | ||
|
||
- name: run integration test on MAINNET | ||
run: cargo test --package beerus-rpc --features integration-tests | ||
|
||
- name: stop RPC | ||
run: kill $(lsof -t -i:3030) | ||
|
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,31 @@ | ||
name: rust-integration-tests-reddio | ||
on: | ||
schedule: | ||
- cron: "0 8,20 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
integration: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: build beerus | ||
run: cargo build -p beerus-cli --release | ||
|
||
- name: start beerus RPC on MAINNET | ||
env: | ||
ETH_EXECUTION_RPC: ${{ secrets.ETH_EXECUTION_RPC_MAINNET }} | ||
STARKNET_RPC: ${{ secrets.STARKNET_RPC_0_6_0_MAINNET_REDDIO }} | ||
# Start Beerus, then try to reach the port every second for 60 seconds. | ||
run: ./target/release/beerus & for i in {1..60}; do timeout 1 bash -c "echo > /dev/tcp/localhost/3030" 2> /dev/null && break || sleep 1; done | ||
|
||
- name: run integration test on MAINNET | ||
run: cargo test --package beerus-rpc --features integration-tests | ||
|
||
- name: stop RPC | ||
run: kill $(lsof -t -i:3030) | ||
|