Added CI to test network setup for block production #6
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: Ethereum Testnet Setup | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
testnet: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20.8' | |
- name: Install JQ | |
run: sudo apt-get install jq | |
- name: Build dependencies | |
run: ./build-dependencies.sh | |
- name: Start Testnet | |
run: ./testnet.sh & | |
- name: Wait for network to be ready | |
run: sleep 60 # Sleep for 60 seconds | |
- name: Run Health check | |
run: ./healthcheck.sh | |
- name: Cleanup | |
if: always() | |
run: | | |
pkill -f geth | |
pkill -f prysm |