rust-integration-tests #48
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
name: rust-integration-tests | |
on: | |
schedule: | |
- cron: "0 8,20 * * *" | |
push: | |
workflow_dispatch: | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
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: | |
BEERUS_VERSION: "ci" | |
NETWORK: "mainnet" | |
ETH_EXECUTION_RPC: ${{ secrets.ETH_EXECUTION_RPC_MAINNET }} | |
STARKNET_RPC: ${{ secrets.STARKNET_RPC_0_6_0_MAINNET }} | |
run: ./target/release/beerus & while ! timeout 1 bash -c "echo > /dev/tcp/localhost/3030" 2> /dev/null; do sleep 2; 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) | |