-
Notifications
You must be signed in to change notification settings - Fork 16
84 lines (67 loc) · 2.37 KB
/
e2e-local.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
name: E2E tests / Locally
on:
workflow_dispatch:
jobs:
e2e-tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: Install common tools
working-directory: ./deployments/local-setup-environment/provisioning/
run: ./install-commons.sh
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: "14"
cache: "npm"
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
- name: Set up Go environment variables
run: |
echo "GOPATH=$HOME/go" >> $GITHUB_ENV
echo "$HOME/go/bin" >> $GITHUB_PATH
- name: Install Geth
working-directory: ./deployments/local-setup-environment/provisioning/
run: ./install-geth.sh
- name: Install Solidity
working-directory: ./deployments/local-setup-environment/provisioning/
run: ./install-solidity.sh
- name: Install Protobuf
working-directory: ./deployments/local-setup-environment/provisioning/
run: ./install-protobuf.sh
- name: Initialize and run Geth
run: |
./initialize-geth.sh
./run-geth.sh &
- name: Initialize and run Bitcoin Core and ElectrumX
run: |
./initialize-bitcoin.sh
./run-bitcoin.sh &
- name: Run pre-install script
run: ./pre-install.sh
- name: Run install script
run: |
export E2E_TEST=true
./install.sh
- name: Run Core and ECDSA clients
run: |
./run-core-1.sh &
./run-ecdsa-1.sh &
./run-ecdsa-2.sh &
./run-ecdsa-3.sh &
# We need this step because the `@keep-network/tbtc.js` which we update in
# next step has an indirect dependency to `@summa-tx/[email protected]`
# package, which downloads one of its sub-dependencies via unathenticated
# `git://` protocol. That protocol is no longer supported. Thanks to this
# step `https://` is used instead of `git://`.
- name: Configure git to don't use unauthenticated protocol
run: git config --global url."https://".insteadOf git://
- name: Prepare environment for running E2E test scripts
run: ./install-e2e-test.sh
- name: Run E2E test scripts
run: ./run-e2e-test.sh