Contract deployers: configure signer for address publishing #278
Workflow file for this run
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@v3 | |
- 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 |