feat(reth): Custom timestamp validation #48
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: Emerald | |
| on: | |
| merge_group: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| # If new code is pushed to a PR branch, then cancel in progress workflows for that PR. | |
| # Ensures that we don't waste CI time, and returns results quicker. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_TERM_COLOR: always | |
| CARGO_PROFILE_DEV_DEBUG: 1 | |
| CARGO_PROFILE_RELEASE_DEBUG: 1 | |
| RUST_BACKTRACE: short | |
| CARGO_NET_RETRY: 10 | |
| RUSTUP_MAX_RETRIES: 10 | |
| jobs: | |
| emerald-block-production: | |
| name: Block Production | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: Install Protoc | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Install cargo-nextest | |
| uses: taiki-e/install-action@cargo-nextest | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| - name: Run Forge build | |
| run: forge build | |
| - name: Run emerald | |
| run: | | |
| cargo build | |
| # `make all` equivalent but with --no-wait | |
| ./scripts/generate_testnet_config.sh --nodes 3 --testnet-config-dir .testnet | |
| cargo run --bin malachitebft-eth-app -- testnet --home nodes --testnet-config .testnet/testnet_config.toml --log-level info | |
| ls nodes/*/config/priv_validator_key.json | xargs -I{} cargo run --bin malachitebft-eth-app show-pubkey {} > nodes/validator_public_keys.txt | |
| cargo run --bin malachitebft-eth-utils genesis --public-keys-file ./nodes/validator_public_keys.txt | |
| docker compose up -d reth0 reth1 reth2 prometheus grafana otterscan | |
| ./scripts/add_peers.sh --nodes 3 | |
| bash scripts/spawn.bash --nodes 3 --home nodes --no-wait | |
| - name: Upload test logs | |
| if: failure() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: emerald-test-logs | |
| path: nodes/**/logs/*.log |