Skip to content

feat: Quick test branch #502

feat: Quick test branch

feat: Quick test branch #502

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