System contract for registering external callbacks to be executed at the end of a batch. [WIP] #677
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: 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 |