Hive (Nightly) #673
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: Hive (Nightly) | |
on: | |
schedule: | |
- cron: "0 01 * * *" # run at 1 am UTC every day | |
workflow_dispatch: | |
jobs: | |
hive: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: AutoModality/action-clean@v1 | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # fetch git tags for "git describe" | |
- name: run hive and parse output | |
run: | | |
sudo mkdir -p /results-${{ github.run_id }} | |
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v ${{ github.workspace }}:/work thorax/hive:latest --sim ethereum/engine --results-root=/work/results-${{ github.run_id }} --client erigon --exit.fail=false | |
docker run --rm --pull always -v /var/run/docker.sock:/var/run/docker.sock -v ${{ github.workspace }}:/work --entrypoint /app/hivecioutput thorax/hive:latest --resultsdir=/work/results-${{ github.run_id }} --outdir=/work/results-${{ github.run_id }} --exclusionsfile=/work/hive/exclusions.json | |
- name: clean up containers | |
if: always() | |
run: | | |
ids=$(docker ps -a -q) | |
for id in $ids | |
do | |
echo "stopping/removing container: $id" | |
docker stop $id && docker rm $id | |
done | |
- name: parse hive results | |
uses: phoenix-actions/test-reporting@v15 | |
with: | |
name: Tests | |
path: results-${{ github.run_id }}/*.xml | |
reporter: java-junit |