-
Notifications
You must be signed in to change notification settings - Fork 1.4k
68 lines (62 loc) · 1.92 KB
/
eest.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
62
63
64
65
66
67
68
# Runs Ethereum execution spec tests (EEST).
#
# To add a new EEST test suite to the workflow, add the following:
#
# - The tag for the release
# - The name of the release artifact (e.g. `fixtures.tar.gz`)
#
# The workflow will download each suite in parallel in a matrix, and run the blockchain tests and blockchain engine tests inside.
#
# The workflow will not run state tests, these are deferred to revm.
name: eest
on:
pull_request:
merge_group:
push:
branches: [main, onbjerg/eest] # todo: temp
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
# build reest
# save to cache
setup:
runs-on:
group: Reth
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
# restore reest from cache
# download fixtures, untar
# run with reest
test:
name: test (${{ matrix.tag }}, ${{ matrix.type }})
needs: setup
runs-on:
group: Reth
strategy:
matrix:
# TODO(onbjerg): For some reason just specifying type as a top-level matrix value
# ignores one of the includes, so instead I have to duplicate type across matrix members
include:
- tag: v3.0.0
artifact: fixtures_stable.tar.gz
type: blockchain_tests
- tag: v3.0.0
artifact: fixtures_stable.tar.gz
type: blockchain_tests_engine
- tag: pectra-devnet-4@v1.0.1
artifact: fixtures_pectra-devnet-4.tar.gz
type: blockchain_tests
steps:
- name: Download fixtures
run: |
wget https://github.com/ethereum/execution-spec-tests/releases/download/${{ matrix.tag }}/${{ matrix.artifact }}
tar -xvzf ${{ matrix.artifact }}
rm ${{ matrix.artifact }}