Skip to content

feat: DAO SDK

feat: DAO SDK #5

name: genesis-verify
on:
pull_request:
branches:
- master
paths:
- "misc/deployments/**/genesis.json"
- ".github/workflows/genesis-verify.yml"
jobs:
verify:
strategy:
fail-fast: false
matrix:
testnet: ["test5.gno.land"]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: "misc/deployments/${{ matrix.testnet }}/genesis.json"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: contribs/gnogenesis/go.mod
- name: Build gnogenesis
run: make -C contribs/gnogenesis
- name: Verify each genesis file
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "Verifying $file"
gnogenesis verify -genesis-path $file
done
- name: Build gnoland
run: make -C gno.land install.gnoland
- name: Running latest gnoland with each genesis file
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "Running gnoland with $file"
timeout 60s gnoland start -lazy --genesis $file || exit_code=$?
if [ $exit_code -eq 124 ]; then
echo "Gnoland genesis state generated successfully"
else
echo "Gnoland failed to start with $file"
exit 1
fi
done