forked from ethereum/hive
-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (50 loc) · 1.65 KB
/
dashboard_erigon_engine_api.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Daily Run Erigon Engine API
on:
schedule:
- cron: '0 0 * * *' # Run every day at midnight UTC
workflow_dispatch:
push:
branches:
- refactoring-phase-2-erigon
pull_request:
branches:
- refactoring-phase-2-erigon
types: [ closed ]
jobs:
hive-run:
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Linux packages
run: |
sudo apt-get update
sudo apt-get install libsnappy-dev libc6-dev libc6 build-essential
- name: Checkout code
uses: actions/checkout@v2
with:
ref: refactoring-phase-2-erigon
- name: Download dependencies
run: go get -v ./...
- name: Build hive
run: go build -v -o hive hive.go
- name: Run Erigon Engine API tests
continue-on-error: true
run: |
HIVE_TTD_ENABLED=false ./hive --sim ethereum/gnosis-engine-jq --sim.limit="engine-api" --client erigon-gnosis --results-root=${{ github.workspace }}/runs --loglevel=5 --client.checktimelimit=10m --docker.output --sim.parallelism=8
- name: Send file over SSH
if: always()
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
source: ${{ github.workspace }}/runs/*
target: ${{ secrets.DIR }}/