Check bindings in ci #8
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: check bindings are up-to-date | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
merge_group: | |
permissions: | |
contents: read | |
jobs: | |
make-bindings: | |
name: make bindings and check for diffs | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: install go1.21 | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: run make bindings and check for diffs | |
run: | | |
make bindings | |
if [ ! -z "$(git status --porcelain)" ]; then | |
printf "Current generated bindings not up to date\n" | |
git diff | |
git status | |
exit 1 | |
fi |