feat(anvil): support empty tx conditionals #3843
Workflow file for this run
This file contains hidden or 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: CI MPP | |
| permissions: {} | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTC_WRAPPER: "sccache" | |
| jobs: | |
| mpp-check: | |
| # Skip on PRs from forks (only run for branches in foundry-rs/foundry, i.e. maintainer PRs). | |
| if: | | |
| github.event_name != 'pull_request' || | |
| github.event.pull_request.head.repo.full_name == github.repository | |
| runs-on: depot-ubuntu-latest | |
| timeout-minutes: 60 | |
| permissions: | |
| contents: read | |
| steps: | |
| # Checkout the repository | |
| - uses: actions/checkout@v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # master | |
| with: | |
| toolchain: stable | |
| - uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10 | |
| # Build and install binaries | |
| - name: Build and install Foundry binaries | |
| run: | | |
| cargo build --profile dev --locked --bin forge --bin cast --bin anvil --bin chisel | |
| echo "${{ github.workspace }}/target/debug" >> "$GITHUB_PATH" | |
| - name: Run MPP e2e test | |
| env: | |
| TEMPO_PRIVATE_KEY: ${{ secrets.TEMPO_PRIVATE_KEY }} | |
| TEMPO_KEYS_TOML_B64: ${{ secrets.TEMPO_KEYS_TOML_B64 }} | |
| MPP_API_KEY: ${{ secrets.MPP_API_KEY }} | |
| MPP_DEPOSIT: "1000000" | |
| TEMPO_AUTO_FUND: "1" | |
| # Use a fresh, faucet-funded wallet each run. | |
| TEMPO_ROTATE_WALLET: "1" | |
| run: | | |
| if [ -z "${MPP_API_KEY:-}" ]; then | |
| echo "::warning::MPP_API_KEY secret not set, skipping MPP e2e" | |
| exit 0 | |
| elif [ "${TEMPO_ROTATE_WALLET:-0}" = "1" ]; then | |
| echo "::notice::Rotating to a fresh ephemeral wallet for MPP e2e" | |
| elif [ -n "${TEMPO_PRIVATE_KEY:-}" ]; then | |
| echo "::notice::Using TEMPO_PRIVATE_KEY for MPP e2e" | |
| elif [ -n "${TEMPO_KEYS_TOML_B64:-}" ]; then | |
| mkdir -p ~/.tempo/wallet | |
| echo "$TEMPO_KEYS_TOML_B64" | tr -d '[:space:]' | base64 -d > ~/.tempo/wallet/keys.toml | |
| else | |
| echo "::warning::TEMPO_PRIVATE_KEY or TEMPO_KEYS_TOML_B64 secret not set, skipping MPP e2e" | |
| exit 0 | |
| fi | |
| ./.github/scripts/tempo-mpp.sh "$(which cast | xargs dirname)" |