File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 runs-on : ubuntu-latest
4545 steps :
4646 - name : Checkout code
47- uses : actions/checkout@v4
47+ uses : actions/checkout@v5
4848
4949 - name : Install Go
5050 uses : actions/setup-go@v5
6464 fail_ci_if_error : true
6565 files : ./coverage.out
6666 token : ${{ secrets.CODECOV_TOKEN }}
67+
68+ solo-test :
69+ strategy :
70+ matrix :
71+ args :
72+ - ' solo'
73+ - ' solo --hayabusa'
74+ - ' solo --on-demand'
75+ runs-on : ubuntu-latest
76+ steps :
77+ - name : Checkout code
78+ uses : actions/checkout@v5
79+
80+ - name : Install Go
81+ uses : actions/setup-go@v5
82+ with :
83+ go-version : 1.24.x
84+
85+ - name : Start Solo
86+ run : nohup go run ./cmd/thor ${{matrix.args}} > thor-solo.log 2>&1 &
87+
88+ - name : Wait for block 1
89+ run : |
90+ for i in {1..30}; do
91+ status=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8669/blocks/1 || true)
92+ if [ "$status" -eq 200 ]; then
93+ echo "✅ Healthcheck passed"
94+ exit 0
95+ fi
96+ echo "Healthcheck failed (status: $status). Retrying in 1s..."
97+ sleep 1
98+ done
99+ echo "❌ Healthcheck failed after 30 attempts"
100+ exit 1
101+
102+ - name : Print Logs
103+ if : failure()
104+ run : cat thor-solo.log
You can’t perform that action at this time.
0 commit comments