remove empty gentx #27
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: Validate Genesis | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
no-change: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check for Genesis file changes | |
id: changed-genesis-files | |
uses: tj-actions/changed-files@v39 | |
with: | |
files: "**/*genesis.json" | |
- name: Fail if any changes in genesis file | |
if: steps.changed-genesis-files.outputs.any_changed == 'true' | |
run: | | |
echo "change in genesis.json file detected!" | |
exit 1 | |
appd-validate-genesis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21 | |
- name: Download celestiaorg/celestia-app | |
run: git clone https://github.com/celestiaorg/celestia-app.git | |
- name: Install Celestiaorg/celestia-app | |
run: cd celestia-app && make install | |
# Validation checks https://github.com/cosmos/cosmos-sdk/blob/bff3104781cca3c409fecfa3efebd80a40eb48c3/x/genutil/types/genesis.go#L53 | |
- name: Validate Pre Genesis | |
run: | | |
if test -f ./celestia/pre-genesis.json; then | |
celestia-appd validate-genesis ./celestia/pre-genesis.json | |
fi | |
- name: Validate Genesis | |
run: | | |
if test -f ./celestia/genesis.json; then | |
celestia-appd validate-genesis ./celestia/genesis.json | |
fi | |
run-network: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21 | |
- name: Download celestiaorg/celestia-app | |
run: git clone https://github.com/celestiaorg/celestia-app.git | |
- name: Checkout test branch and Install gentest util | |
run: | | |
cd celestia-app | |
git checkout evan/mainnet-tooling | |
cd cmd/celestia-appd/cmd/gentest | |
go install | |
- name: Validate Genesis | |
run: | | |
if test -f ./celestia/pre-genesis.json; then | |
gentest ./celestia/pre-genesis.json ./celestia/gentx | |
fi |