fix(l1): fix hive report workflow #9
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: Daily Hive Coverage | |
on: | |
pull_request: | |
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 | |
id: report | |
run: | | |
#cargo run -p hive_report > results.md | |
content=$(cat results) | |
echo "content='$content'" >> $GITHUB_OUTPUT | |
- name: Post results in summary | |
run: | | |
echo "# Hive coverage report\n\n" >> $GITHUB_STEP_SUMMARY | |
cat results.md >> $GITHUB_STEP_SUMMARY | |
- name: Post results to slack | |
uses: slackapi/[email protected] | |
with: | |
webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | |
webhook-type: incoming-webhook | |
payload: | | |
blocks: | |
- type: "header" | |
text: | |
type: "plain_text" | |
text: Hive coverage report | |
- type: "section" | |
text: | |
type: "mrkdwn" | |
text: ${{steps.report.outputs.content}} |