-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (50 loc) · 1.75 KB
/
node_test.yaml
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
## This is a temporary flow, until we have our custom docker images that work with systemd for linux.
## Once we have that, we can remove this and use docker containers in parallel, covering the various OS:es.
name: Node Command OS-Matrix Test
on:
workflow_dispatch:
pull_request:
paths:
- "cmd/**"
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Run Ubuntu commands
run: |
git clone https://github.com/algorandfoundation/hack-tui.git
cd hack-tui
go build .
sudo ./hack-tui node install
sudo ./hack-tui node start
systemctl status algorand.service
export TOKEN=$(cat /var/lib/algorand/algod.admin.token)
curl http://localhost:8080/v2/participation -H "X-Algo-API-Token: $TOKEN" | grep "null"
sudo ./hack-tui node stop
sudo ./hack-tui node upgrade
# sudo ./hack-tui node configure
sudo ./hack-tui node uninstall
macos:
runs-on: macos-latest
steps:
- name: Run MacOs commands
run: |
brew install go
cd ~/
git clone https://github.com/algorandfoundation/hack-tui.git
cd hack-tui
go build .
sudo ./hack-tui node install
sudo ./hack-tui node start
sudo launchctl print system/com.algorand.algod
sleep 5
export TOKEN=$(cat ~/.algorand/algod.admin.token)
curl http://localhost:8080/v2/participation -H "X-Algo-API-Token: $TOKEN" | grep "null"
sudo ./hack-tui node stop
sudo ./hack-tui node upgrade
# sudo ./hack-tui node configure
sudo ./hack-tui node uninstall