Skip to content

ci: add job to check the bindings are up to date #12

ci: add job to check the bindings are up to date

ci: add job to check the bindings are up to date #12

Workflow file for this run

name: Bindings
on:
push:
branches:
- dev
pull_request:
permissions:
contents: read
jobs:
check:
strategy:
fail-fast: true
name: Check bindings are up to date
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install go1.21
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Add Ethereum PPA
run: sudo add-apt-repository -y ppa:ethereum/ethereum
- name: Install Abigen
run: sudo apt-get update && sudo apt-get install ethereum
- name: Show abigen version
run: abigen --version
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: v0.3.0
- name: run make bindings and check for diffs
run: |
make bindings
# sudo required due to bindings being owned by root
if [ ! -z "$(sudo git status --porcelain)" ]; then
printf "Current generated bindings not up to date\n"
sudo git diff
sudo git status
exit 1
fi