h5law/release-workflows #32
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: Validate Bindings | |
on: | |
pull_request: | |
branches: ["main"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
verify-bindings: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: "recursive" | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21.3" | |
- name: Setup Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install ABIGen | |
run: | | |
go install github.com/ethereum/go-ethereum/cmd/[email protected] | |
- name: Generate Bindings | |
run: | | |
bun install --frozen-lockfile | |
bun run generate-bindings | |
- name: Check for Bindings Changes | |
run: | | |
if [ $(git status --porcelain | sed 's/^...//' | grep bindings/ | wc -l) -ne 0 ]; then | |
echo "Changes in Generated Bindings" | |
echo $(git status --porcelain | sed 's/^...//' | grep bindings/) | |
exit 1 | |
fi |