mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-03 17:54:28 +00:00
8a3eb4df9c
## Issue Addressed N/A ## Proposed Changes Replace ganache-cli with anvil https://github.com/foundry-rs/foundry/blob/master/anvil/README.md We can lose all js dependencies in CI as a consequence. ## Additional info Also changes the ethers-rs version used in the execution layer (for the transaction reconstruction) to a newer one. This was necessary to get use the ethers utils for anvil. The fixed execution engine integration tests should catch any potential issues with the payload reconstruction after #3592 Co-authored-by: Michael Sproul <michael@sigmaprime.io>
73 lines
2.0 KiB
YAML
73 lines
2.0 KiB
YAML
# Test that local testnet starts successfully.
|
|
name: local testnet
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- unstable
|
|
pull_request:
|
|
merge_group:
|
|
|
|
jobs:
|
|
run-local-testnet:
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-22.04
|
|
- macos-12
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Get latest version of stable Rust
|
|
run: rustup update stable
|
|
- name: Install Protoc
|
|
uses: arduino/setup-protoc@e52d9eb8f7b63115df1ac544a1376fdbf5a39612
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Install anvil
|
|
run: cargo install --git https://github.com/foundry-rs/foundry --locked anvil
|
|
|
|
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
|
|
- uses: actions/cache@v3
|
|
id: cache-cargo
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
|
|
- name: Install lighthouse
|
|
run: make && make install-lcli
|
|
|
|
- name: Start local testnet
|
|
run: ./start_local_testnet.sh && sleep 60
|
|
working-directory: scripts/local_testnet
|
|
|
|
- name: Print logs
|
|
run: ./dump_logs.sh
|
|
working-directory: scripts/local_testnet
|
|
|
|
- name: Stop local testnet
|
|
run: ./stop_local_testnet.sh
|
|
working-directory: scripts/local_testnet
|
|
|
|
- name: Clean-up testnet
|
|
run: ./clean.sh
|
|
working-directory: scripts/local_testnet
|
|
|
|
- name: Start local testnet with blinded block production
|
|
run: ./start_local_testnet.sh -p && sleep 60
|
|
working-directory: scripts/local_testnet
|
|
|
|
- name: Print logs for blinded block testnet
|
|
run: ./dump_logs.sh
|
|
working-directory: scripts/local_testnet
|
|
|
|
- name: Stop local testnet with blinded block production
|
|
run: ./stop_local_testnet.sh
|
|
working-directory: scripts/local_testnet
|