File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 12
12
build :
13
13
runs-on : ubuntu-latest
14
14
15
- services :
16
- tfchain :
17
- image : ghcr.io/threefoldtech/tfchain:2.8.1
18
- options : --dev --rpc-cors all --rpc-external --rpc-methods=safe
19
- ports :
20
- - 9944:9944
21
-
22
15
steps :
23
16
- name : Set up Repository
24
17
uses : actions/checkout@v2
41
34
- name : Install dependencies
42
35
run : melos bootstrap
43
36
37
+ - name : Start TFChain Docker Container
38
+ run : |
39
+ sudo docker run --network host ghcr.io/threefoldtech/tfchain:2.8.1 --dev --rpc-cors all --rpc-external --rpc-methods=safe
40
+
41
+ - name : Wait for TFChain to be ready
42
+ run : |
43
+ while ! nc -z localhost 9944; do
44
+ echo "Waiting for TFChain to be ready..."
45
+ sleep 5
46
+ done
47
+
44
48
- name : Run unit tests and generate coverage
45
49
env :
46
50
URL : ${{ secrets.URL }}
64
68
with :
65
69
token : ${{ secrets.CODECOV_TOKEN }}
66
70
files : coverage/filtered.lcov.info
71
+
72
+ - name : Stop and remove TFChain Docker Container
73
+ run : sudo docker stop tfchain && sudo docker rm tfchain
You can’t perform that action at this time.
0 commit comments