Skip to content

chore: added v7 upgrade info #386

chore: added v7 upgrade info

chore: added v7 upgrade info #386

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- main
jobs:
check-genesis:
name: Check genesis validity
runs-on: ubuntu-latest
steps:
- name: Checkout ๐Ÿ›Ž๏ธ
uses: actions/checkout@v2
- name: Setup Python ๐Ÿ
uses: actions/setup-python@v2
with:
python-version: '3.9.5'
- name: Check genesis validity โœ…
run: |
pip3 install -r scripts/requirements.txt
python scripts/check-genesis.py "$GITHUB_WORKSPACE/genesis.json"
check-gentxs:
name: Check gentxs validity
runs-on: ubuntu-latest
steps:
- name: Checkout ๐Ÿ›Ž๏ธ
uses: actions/checkout@v2
- name: Setup Python ๐Ÿ
uses: actions/setup-python@v2
with:
python-version: '3.9.5'
- name: Check gentxs validity โœ…
run: |
pip3 install -r scripts/requirements.txt
python scripts/check-gentx.py "$GITHUB_WORKSPACE/gentxs"
collect-genesis:
name: Collect genesis test
runs-on: ubuntu-latest
needs:
- check-gentxs
steps:
- name: Checkout ๐Ÿ›Ž๏ธ
uses: actions/checkout@v2
- name: Setup Desmos ๐Ÿ’ฟ
run: |
wget -O desmos https://github.com/desmos-labs/desmos/releases/download/v1.0.0/desmos-1.0.0-linux-amd64
chmod +x ./desmos
./desmos init test
- name: Collect genesis transactions ๐Ÿ“ฎ
run: |
cp genesis.json ~/.desmos/config/genesis.json
cp -a gentxs/. ~/.desmos/config/gentx/
./desmos collect-gentxs
- name: Validate genesis โœ…
run: |
./desmos validate-genesis ~/.desmos/config/genesis.json
- name: Start chain โ›“
run: |
./desmos start > output.txt 2>&1 &
- name: Test liveness โœ…
run: |
sleep 30
if [[ $(cat output.txt | grep "Reconnecting to peer") ]]; then
echo "Chain starting"
exit 0
else
echo "Chain not started"
exit 1
fi