ci: Update per Q3 audit findings #309
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
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 [18] | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: 18 | |
cache: npm | |
- 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 |