Skip to content

feat(exe): handle both contract classes cases #55

feat(exe): handle both contract classes cases

feat(exe): handle both contract classes cases #55

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)