-
Notifications
You must be signed in to change notification settings - Fork 16
83 lines (82 loc) · 3.01 KB
/
test-examples.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
name: Test Examples
on:
workflow_dispatch:
schedule:
# At 9:00 on Mondays.
- cron: '0 9 * * 1'
jobs:
fresh-state-testnet:
runs-on: ubuntu-22.04
env:
RPC_ENDPOINT: https://localhost:26657
steps:
- name: Bypass the grub-efi-amd64-signed package
run: sudo apt-mark hold grub-efi-amd64-signed
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ansible toml
ansible-galaxy install -r requirements.yml
- name: Configure ansible.cfg
run: echo "transport = local" >> ansible.cfg
- name: Run playbook
run: |
ansible-playbook node.yml -i examples/inventory-local.yml --extra-vars "target=local reboot=false chain_home={{ node_user_home }}/.gaia node_user=runner enable_swap=false use_cosmovisor=false"
- name: Check gaiad service
run: systemctl status gaiad
- name: Check blocks are being produced
run: |
tests/test_block_production.sh 127.0.0.1 26657 10
rs-testnet:
runs-on: ubuntu-22.04
env:
RPC_ENDPOINT: https://localhost:26657
steps:
- name: Bypass the grub-efi-amd64-signed package
run: sudo apt-mark hold grub-efi-amd64-signed
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ansible toml
ansible-galaxy install -r requirements.yml
- name: Configure ansible.cfg
run: echo "transport = local" >> ansible.cfg
- name: Run playbook
run: |
ansible-playbook local-rs-testnet.yml -i examples/inventory-local-rs-testnet.yml --extra-vars "reboot=false node_user=runner provider_user=runner consumer_user=runner enable_swap=false target_provider=127.0.0.1 target_consumer=127.0.0.1"
- name: Check gaiad service
run: systemctl status cv-provider
- name: Check blocks are being produced on provider
run: |
tests/test_block_production.sh 127.0.0.1 26650 10
- name: Check blocks are being produced on consumer
run: |
tests/test_block_production.sh 127.0.0.1 26660 10
- name: Test CCV
env:
CON1_RPC_PORT: 26660
VAL1_RPC_PORT: 26650
CHAIN_BINARY: "/home/runner/go/bin/gaiad"
HOME_1: "/home/runner/.gaia"
VALOPER_1: "cosmosvaloper1r5v5srda7xfth3hn2s26txvrcrntldju7lnwmv"
VAL_STAKE_STEP: "1000000"
MONIKER_1: "validator"
DENOM: "uatom"
GAS: "auto"
GAS_ADJUSTMENT: 1.4
CHAIN_ID: "test-provider"
COMMIT_TIMEOUT: 3
run: tests/major_fresh_upgrade/test_ccv.sh