forked from lavanet/lava
-
Notifications
You must be signed in to change notification settings - Fork 0
131 lines (110 loc) · 3.88 KB
/
e2e.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: Lava E2E Tests
on: [pull_request]
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: actions/setup-go@v3
with:
go-version: 1.18.2
# Install Ignite
- name: ignite install
run: git clone --depth 1 --branch v0.22.2 https://github.com/ignite/cli && cd cli && make install
# run: curl https://get.ignite.com/cli! | bash
- name: ignite version
run: ignite version
# - name: starport install
# run: curl https://get.starport.network/[email protected]! | bash
# - name: starport version
# run: starport version
# Setup Paths
- name: home
run: pwd && ls -l
- name: ls usr
run: ls -l /home/runner/work/lava/lava
- name: cp lava
run: cp -r ~/work/lava/lava ~/go/lava
- name: export PATH
run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/
# - name: export
# run: export PATH=$PATH:/go/lava
- name: export GOPATH
run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd`
- name: export LAVA
run: export LAVA=/home/runner/work/lava/lava
- name: go env
run: go env
- name: pwd
run: pwd
- name: tree
run: tree
- name: ls -l
run: ls -l
# Pre-build with ignite
- name: ignite build
uses: nick-fields/retry@v2
with:
max_attempts: 3
retry_on: error
timeout_minutes: 20
command: ignite chain build -v
######################################################
### Run Lava E2E Tests IGNITE VERSION:0.22.1
######################################################
- name: Run Lava E2E Tests IGNITE VERSION:0.22.1 -timeout 1200s
run: go test ./testutil/e2e/ -v -timeout 1200s # 20mins
- name: Stake Lava All Logs
if: always()
run: cat testutil/e2e/logs/01_stakeLava.log
- name: Stake Lava Error Only Logs
if: always()
continue-on-error: true
run: cat testutil/e2e/logs/01_stakeLava_errors.log
- name: head -n 300 JSON Proxy Logs
if: always()
run: head -n 300 testutil/e2e/logs/02_jsonProxy.log
- name: tail -n 300 JSON Proxy Logs
if: always()
run: tail -n 300 testutil/e2e/logs/02_jsonProxy.log
- name: JSON Proxy Error Only Logs
if: always()
continue-on-error: true
run: cat testutil/e2e/logs/02_jsonProxy_errors.log
- name: JSON Provider All Logs
if: always()
run: grep "" testutil/e2e/logs/03_EthProvider* --exclude="*errors*"
- name: JSON Provider Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/logs/03_EthProvider* --include="*errors*"
- name: JSON Consumer All Logs
if: always()
run: grep "" testutil/e2e/logs/04_jsonConsumer* --exclude="*errors*"
- name: JSON Consumer Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/logs/04_jsonConsumer* --include="*errors*"
- name: Lava Provider All Logs
if: always()
run: grep "" testutil/e2e/logs/05_LavaProvider* --exclude="*errors*"
- name: Lava Provider Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/logs/05_LavaProvider* --include="*errors*"
- name: Lava over Lava All Logs
if: always()
run: cat testutil/e2e/logs/07_lavaOverLava.log
- name: Lava over Lava Error Only Logs
if: always()
continue-on-error: true
run: cat testutil/e2e/logs/07_lavaOverLava_errors.log
- name: RPCConsumer Consumer All Logs
if: always()
run: grep "" testutil/e2e/logs/06_RPCConsumer* --exclude="*errors*"
- name: RPCConsumer Consumer Error Only Logs
if: always()
continue-on-error: true
run: grep "" testutil/e2e/logs/06_RPCConsumer* --include="*errors*"