Skip to content

Daily Hive Coverage

Daily Hive Coverage #1

name: Daily Hive Coverage
on:
schedule:
# Every day at UTC midnight
- cron: '0 0 * * *'
workflow_dispatch:
env:
RUST_VERSION: 1.80.1
jobs:
build:
uses: ./.github/workflows/docker-build.yaml
hive-coverage:
name: Run engine hive simulator to gather coverage information.
runs-on: ubuntu-latest
needs: [build]
steps:
# TODO: Maybe this can be reused as well.
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: ethrex_image
path: /tmp
- name: Load image
run: |
docker load --input /tmp/ethrex_image.tar
- name: Checkout sources
uses: actions/checkout@v3
- name: Rustup toolchain install
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Setup Go
uses: actions/setup-go@v3
- name: Run Hive Simulation
run: make run-hive-on-latest SIMULATION=ethereum/engine
continue-on-error: true
- name: Caching
uses: Swatinem/rust-cache@v2
- name: Generate the hive report
run: cargo run -p hive_report