docs: updated gRPC endpoint #385
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: 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 |