9bd6d9ce7a
## Issue Addressed Closes https://github.com/sigp/lighthouse/issues/3656 ## Proposed Changes * Replace `set-output` by `$GITHUB_OUTPUT` usage * Avoid rate-limits when installing `protoc` by making authenticated requests (continuation of https://github.com/sigp/lighthouse/pull/3621) * Upgrade all Ubuntu 18.04 usage to 22.04 (18.04 is end of life) * Upgrade macOS-latest to explicit macOS-12 to silence warning * Use `actions/checkout@v3` and `actions/cache@v3` to avoid deprecated NodeJS v12 ## Additional Info Can't silence the NodeJS warnings entirely due to https://github.com/sigp/lighthouse/issues/3705. Can fix that in future.
72 lines
1.9 KiB
YAML
72 lines
1.9 KiB
YAML
# Test that local testnet starts successfully.
|
|
name: local testnet
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- unstable
|
|
pull_request:
|
|
|
|
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@v1
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Install ganache
|
|
run: npm install ganache@latest --global
|
|
|
|
# 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
|