Feat/multi revm #46
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: Check Rust | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| concurrency: | |
| group: ${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| FOUNDRY_PROFILE: ci | |
| jobs: | |
| cargo-fmt: | |
| name: cargo fmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check-Out | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Nightly | |
| run: | | |
| rustup toolchain install nightly | |
| rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt | |
| - name: cargo +nightly fmt | |
| run: cargo +nightly fmt --all -- --check | |
| cargo-check: | |
| name: cargo check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check-Out | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: cargo-check | |
| cache-on-failure: true | |
| - name: cargo check --workspace --all-targets --all-features | |
| run: cargo check --workspace --all-targets --all-features | |
| cargo-clippy: | |
| name: cargo clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check-Out | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: stable | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| key: cargo-clippy | |
| cache-on-failure: true | |
| - name: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| cargo-test: | |
| name: cargo test | |
| runs-on: ubuntu-latest | |
| env: | |
| ETH_WS_URL: ${{ secrets.ETH_WS_URL }} | |
| BASE_WS_URL: ${{ secrets.BASE_WS_URL }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Run tests | |
| run: cargo test --workspace --all-targets --features ci -- --nocapture |