Skip to content

Commit 2843161

Browse files
committed
adding a waiting step
1 parent c5e7efb commit 2843161

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ jobs:
5151
run: bash ./setup_github.sh && docker compose up --build -d
5252

5353
- name: check dns is working
54-
run: netstat
54+
run: netstat -tulpn # Use -tulpn to show TCP/UDP listeners
55+
56+
- name: Wait for services to be ready
57+
run: |
58+
# Wait for nginx to be ready
59+
timeout 60s bash -c 'while ! curl -s http://localhost:8089 > /dev/null; do sleep 1; done'
5560
5661
- name: Run E2E tests
5762
uses: cypress-io/github-action@v6

0 commit comments

Comments
 (0)