-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (37 loc) · 1.26 KB
/
hive.yaml
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
# Runs the rpc-compact hive testing suite
# Only runs the tests for the rpc endpoints specified in the HIVE_TEST_PATTERN env var
# Please add more rpc endpoints as soon as their tests pass, and eventually remove the env var when they all do
name: Hive
on:
merge_group:
push:
branches: [main]
pull_request:
branches: ["*"]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
RUST_VERSION: 1.80.1
HIVE_TEST_PATTERN: "/eth_chainId|eth_getTransactionByBlockHashAndIndex|eth_getTransactionByBlockNumberAndIndex|eth_getCode|eth_getStorageAt|eth_call|eth_getTransactionByHash"
jobs:
run-hive:
name: Run Hive
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Rustup toolchain install
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- name: Setup just
uses: extractions/setup-just@v2
- name: Setup Go
uses: actions/setup-go@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Download Hive
run: just setup-hive
- name: Run Hive
run: just run-hive "${{ env.HIVE_TEST_PATTERN }}"