-
Notifications
You must be signed in to change notification settings - Fork 54
61 lines (48 loc) · 1.88 KB
/
opcode-logger-testing.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: Opcode logger testing
on:
pull_request:
branches: [ main, release/** ]
push:
branches: [ main, release/** ]
tags: [ v* ]
jobs:
check:
name:
Opcode logger comparison between besu and hedera
runs-on: smart-contracts-linux-large
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- name: Install Docker Compose Plugin
run: |
sudo curl -fLo /usr/local/lib/docker/cli-plugins/docker-compose https://github.com/docker/compose/releases/download/v2.29.1/docker-compose-linux-x86_64
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
- name: Use Node.js [20]
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20
#cache: npm Disabling this because it causes the workflow to hang and eventually timeout
- name: Create .env file
run: cp local.env .env
- name: Install dependencies
run: npm install
- name: Upgrade @hashgraph/hedera-local to v2.27.1
run: npm install @hashgraph/[email protected] --save
- name: Install Foundry
uses: step-security/foundry-toolchain@01e2d127ea061e2ce8fa34340de71ca8518f093e # v1.2.1
with:
version: nightly
- name: Run besu node
run: npm run besu:start
- name: Run opcode tests against besu
run: npx hardhat test --grep "besu comparison" --network besu_local
- name: Start the hedera local node
run: npx hedera start -d
- name: Run opcode tests against hedera local node
run: npx hardhat test --grep @OpcodeLogger