-
Notifications
You must be signed in to change notification settings - Fork 100
98 lines (80 loc) · 2.52 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
on:
push:
branches:
- master
- the-merge
pull_request:
name: E2E tests
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- job-name: E2E
cmd: ./testing/ci/e2e.sh
timeout-minutes: 60
- job-name: E2E myerc20
cmd: ./testing/ci/e2e_deploy_contract.sh
timeout-minutes: 60
- job-name: Challenge with watchdog
cmd: ./testing/ci/test_challenge.sh
timeout-minutes: 60
- job-name: Test eth-relay catchup
cmd: ./testing/ci/test_ethrelay_catchup.sh
timeout-minutes: 60
name: ${{ matrix.job-name }}
steps:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
- name: Clone the repository
uses: actions/checkout@v3
with:
lfs: 'true'
- name: Install nearup
run: |
pip3 install nearup --upgrade --user
echo "$(python3 -m site --user-base)/bin" >> $GITHUB_PATH
- name: Clean pm2 log
run: rm -f ~/.pm2/pm2.log || true
- name: Execute
run: ${{ matrix.cmd }}
timeout-minutes: ${{ matrix.timeout-minutes }}
- name: Print ganache stdout
if: ${{ always() }}
run: cat ~/.rainbow/logs/ganache/out.log || true
- name: Print ganache stderr
if: ${{ always() }}
run: cat ~/.rainbow/logs/ganache/err.log || true
- name: Print near2eth-relay stdout
if: ${{ always() }}
run: cat ~/.rainbow/logs/near2eth-relay/out.log || true
- name: Print near2eth-relay stderr
if: ${{ always() }}
run: cat ~/.rainbow/logs/near2eth-relay/err.log || true
- name: Print eth2near-relay stdout
if: ${{ always() }}
run: cat ~/.rainbow/logs/eth2near-relay/out.log || true
- name: Print eth2near-relay stderr
if: ${{ always() }}
run: cat ~/.rainbow/logs/eth2near-relay/err.log || true
- name: Print watchdog stdout
if: ${{ always() }}
run: cat ~/.rainbow/logs/watchdog/out.log || true
- name: Print watchdog stderr
if: ${{ always() }}
run: cat ~/.rainbow/logs/watchdog/err.log || true
- name: Print pm2 log
if: ${{ always() }}
run: cat ~/.pm2/pm2.log || true
- name: Clean
if: ${{ always() }}
run: |
cd cli
node index.js clean
rm -f ~/.pm2/pm2.log || true
env:
GANACHE_BLOCK_TIME: 1