Skip to content

Commit 44f993d

Browse files
committed
fix(ci): pass solo command args to thor container
GitHub Actions services block has no command field; switch to manual docker run so thor starts in solo mode with the same flags as docker-compose.yml
1 parent 46e1dfd commit 44f993d

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ jobs:
3636
integration-tests:
3737
name: Integration Tests (thor-solo)
3838
runs-on: ubuntu-latest
39-
services:
40-
thor-solo:
41-
image: vechain/thor:latest
42-
ports:
43-
- 8669:8669
44-
options: >-
45-
--health-cmd "wget -qO- http://localhost:8669/blocks/0 || exit 1"
46-
--health-interval 3s
47-
--health-timeout 5s
48-
--health-retries 15
4939
steps:
5040
- uses: actions/checkout@v4
5141

@@ -55,6 +45,19 @@ jobs:
5545
node-version: 22
5646
cache: npm
5747

48+
- name: Start thor-solo
49+
run: |
50+
docker run -d --name thor-solo \
51+
-p 8669:8669 \
52+
vechain/thor:latest solo --api-cors '*' --api-addr 0.0.0.0:8669 --api-timeout 60
53+
54+
- name: Wait for thor-solo
55+
run: |
56+
for i in $(seq 1 30); do
57+
wget -qO- http://localhost:8669/blocks/0 && break
58+
sleep 2
59+
done
60+
5861
- name: Install root dependencies
5962
run: npm ci
6063

0 commit comments

Comments
 (0)