-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.01 KB
/
test-start-node.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
name: Test Start Node
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Start Preprod node, wait 30s then stop node
shell: bash
run: |
printf "1\n" | /bin/bash ./start-node.sh 2>&1 | tee script_output.txt &
sleep 30
/bin/bash ./stop-nodes.sh
- name: Start Preview node, wait 30s then stop node
shell: bash
run: |
printf "2\n" | /bin/bash ./start-node.sh 2>&1 | tee script_output.txt &
sleep 30
/bin/bash ./stop-nodes.sh
- name: Start SanchoNet node, wait 30s then stop node
shell: bash
run: |
printf "3\n" | /bin/bash ./start-node.sh 2>&1 | tee script_output.txt &
sleep 30
/bin/bash ./stop-nodes.sh