feat(nexus): msg dispatcher for routing messages from the wasm connection router to the nexus module #1904
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: Check format and go generated files up-to-date | |
on: | |
- pull_request | |
jobs: | |
check-go-generate-up-to-date: | |
strategy: | |
matrix: | |
go-version: | |
- 1.21 | |
os: | |
- ubuntu-20.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Setup Golang with cache | |
uses: magnetikonline/action-golang-cache@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- 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@v2 | |
- 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 |