-
Notifications
You must be signed in to change notification settings - Fork 116
29 lines (29 loc) · 1.05 KB
/
gentx-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Validate Genesis and collect gentxs
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
run: |
wget https://github.com/althea-net/althea-L1/releases/download/v1.2.0/althea-linux-amd64
chmod +x althea-linux-amd64
sudo mv althea-linux-amd64 /bin/althea
althea init test --chain-id althea_258432-1
mkdir $HOME/.althea/config/gentx
cp ./althea-l1-mainnet-genesis.json $HOME/.althea/config/genesis.json
mkdir -p ./gentx
mkdir -p ./gentxs
# allow this copy routine to fail if there are no files in one folder
set +e
rm ./gentx/placeholder
cp ./gentx/* $HOME/.althea/config/gentx/
cp ./gentxs/* $HOME/.althea/config/gentx/
set -e
- name: Validate Genesis
run: althea validate-genesis
- name: Collect Gentxs
run: althea collect-gentxs
- name: Validate Genesis with signatures
run: althea validate-genesis