Fix callee onchain balance #1294
Workflow file for this run
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 | |
on: | |
# push: | |
# branches: | |
# - master | |
pull_request_target: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: [self-hosted, integration-xl] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Format check | |
run: cargo fmt -- --check | |
# - name: Clippy | |
# run: cargo clippy --all-features | |
- name: Download and Extract Cache | |
run: curl -L https://github.com/fuzzland/ityfuzz-test-cache/releases/latest/download/cache.tar.gz -o cache.tar.gz && tar -xzf cache.tar.gz | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Run integration tests (Offchain) | |
run: python3 integration_test.py offchain | |
- name: Run integration tests (Onchain) | |
env: | |
BSC_ETHERSCAN_API_KEY: ${{ secrets.BSC_ETHERSCAN_API_KEY }} | |
BSC_RPC_URL: ${{ secrets.BSC_RPC_URL }} | |
ETH_ETHERSCAN_API_KEY: ${{ secrets.ETH_ETHERSCAN_API_KEY }} | |
ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }} | |
POLYGON_ETHERSCAN_API_KEY: ${{ secrets.POLYGON_ETHERSCAN_API_KEY }} | |
POLYGON_RPC_URL: ${{ secrets.POLYGON_RPC_URL }} | |
run: python3 integration_test.py onchain | |
- name: Report onchain tests | |
env: | |
BOT_GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }} | |
PR_NUMBER: ${{ github.event.number }} | |
run: echo "PR=$PR_NUMBER" && python3 ci.py |