first integration tests (#64)

resolves #60

Co-authored-by: johba <johba@harb.eth>
Reviewed-on: https://codeberg.org/johba/harb/pulls/64
This commit is contained in:
johba 2025-10-05 19:40:14 +02:00
parent d6f0bf4f02
commit 1645865c5a
14 changed files with 913 additions and 2226 deletions

View file

@ -8,9 +8,11 @@ services:
- .:/workspace:z
expose:
- "8545"
ports:
- "127.0.0.1:8545:8545"
restart: unless-stopped
healthcheck:
test: ["CMD", "cast", "block-number", "--rpc-url", "http://localhost:8545"]
test: ["CMD", "cast", "block-number", "--rpc-url", "http://127.0.0.1:8545"]
interval: 2s
timeout: 1s
retries: 5
@ -78,9 +80,11 @@ services:
condition: service_completed_successfully
expose:
- "42069"
ports:
- "127.0.0.1:42069:42069"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:42069/"]
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:42069/"]
interval: 5s
timeout: 3s
retries: 12
@ -105,9 +109,11 @@ services:
condition: service_healthy
expose:
- "5173"
ports:
- "127.0.0.1:5173:5173"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:5173/app/"]
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:5173/app/"]
interval: 5s
retries: 6
start_period: 10s
@ -133,7 +139,7 @@ services:
- "5174"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:5174/"]
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:5174/"]
interval: 5s
retries: 6
start_period: 10s
@ -159,7 +165,7 @@ services:
- "43069"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:43069/status"]
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:43069/status"]
interval: 5s
retries: 4
start_period: 10s
@ -179,7 +185,7 @@ services:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:80"]
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:80"]
interval: 2s
retries: 3
start_period: 2s