Skip to content

Commit 2eb592f

Browse files
authored
Darren/chore/solo smoke test (#1265)
1 parent 697f0cc commit 2eb592f

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/test.yaml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
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
@@ -64,3 +64,41 @@ jobs:
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

0 commit comments

Comments
 (0)