Bump github.com/ava-labs/avalanche-network-runner from 1.7.3-0.20231026153158-2931f8a448d9 to 1.7.3 #558
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: ABI Go Bindings Checker | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
abi_binding: | |
name: abi_binding | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Teleporter repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set Go version | |
run: | | |
source ./scripts/versions.sh | |
GO_VERSION=$GO_VERSION >> $GITHUB_ENV | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Generate ABI Go bindings | |
run: | | |
export GOPATH=$HOME/go | |
export PATH="$PATH:$GOPATH/bin" | |
./scripts/abi_bindings.sh | |
- name: Print diff | |
run: git --no-pager diff -- abi-bindings/**.go | |
- name: Fail if diff exists | |
run: git --no-pager diff --quiet -- abi-bindings/**.go | |
unit_tests: | |
name: Unit tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repositories and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set Go version | |
run: | | |
source ./scripts/versions.sh | |
GO_VERSION=$GO_VERSION >> $GITHUB_ENV | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Run ABI Binding Unit Tests | |
run: | | |
source scripts/constants.sh | |
cd abi-bindings/go | |
go test ./... |