Skip to content

L1 events and block processing #763

L1 events and block processing

L1 events and block processing #763

name: Run Hardhat Tests
# Builds and runs tests on each push to a branch PR'ed against main.
on:
pull_request:
paths:
- 'contracts/**'
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install abigen
run: |
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get -y install ethereum
- name: Install dependencies
run: cd contracts && npm install
- name: Check contracts match committed bytecode
run: |
cd contracts
npx hardhat generate-abi-bindings --output-dir generated
git diff
[ $(git diff | wc -c) -eq "0" ] || exit 1
- name: Hardhat test
run: cd contracts && npx hardhat test