Skip to content

Add versions to calls to the Obscuro Gateway #170

Add versions to calls to the Obscuro Gateway

Add versions to calls to the Obscuro Gateway #170

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