Skip to content

refactor(axelarnet)!: remove CallContract message type #2658

refactor(axelarnet)!: remove CallContract message type

refactor(axelarnet)!: remove CallContract message type #2658

name: Check format and go generated files up-to-date
on:
- pull_request
jobs:
check-go-generate-up-to-date:
runs-on: ubuntu-22.04
steps:
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v2
with:
go-version: 1.23
- name: Install Python
uses: actions/setup-python@v3
- name: Cache Python
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-cache
- name: Checkout code
uses: actions/checkout@v4
- name: Get Bytecode Version
id: bytecode_version
run: echo ::set-output name=VERSION::$(cat contract-version.json | jq -r '.gateway')
- name: Download Gateway Bytecode
run : |
wget "https://github.com/axelarnetwork/axelar-cgp-solidity/releases/download/${{ steps.bytecode_version.outputs.VERSION }}/Bytecode-${{ steps.bytecode_version.outputs.VERSION }}.zip"
- name: Create folder contract-artifacts
run : |
[ ! -d contract-artifacts ] && mkdir contract-artifacts
- name: Unzip Bytecode
run : |
unzip Bytecode-${{ steps.bytecode_version.outputs.VERSION }}.zip -d ./contract-artifacts
rm Bytecode-${{ steps.bytecode_version.outputs.VERSION }}.zip
- name: Install prereqs
run: |
go install golang.org/x/tools/cmd/goimports
go install golang.org/x/tools/cmd/stringer
go install github.com/matryer/moq
pip3 install mdformat
- name: Run go generate
run: make generate
- name: Run goimports
run: make goimports
- name: Check for changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo Following files are changed...
git status
echo Changes:
git diff
exit 1;
else
exit 0;
fi