We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0186ad commit 25752fdCopy full SHA for 25752fd
1 file changed
.github/workflows/e2e.yml
@@ -14,8 +14,6 @@ on:
14
jobs:
15
e2e:
16
runs-on: ubuntu-latest
17
- # Only run on workflow_dispatch (manual trigger), but always register check on PRs
18
- if: github.event_name == 'workflow_dispatch' || github.ref_name == 'main'
19
20
steps:
21
- name: Checkout code
@@ -47,8 +45,11 @@ jobs:
47
45
48
46
- name: Wait for services to be ready
49
run: |
50
- timeout 60 bash -c 'until docker compose ps | grep -q "Up"; do sleep 2; done'
51
- sleep 10
+ timeout 60 bash -c '
+ while [ "$(docker compose ps | grep -c "Up")" -ne 3 ]; do
+ sleep 2
+ done
52
+ ' || { echo "Service readiness check failed:"; docker compose ps; exit 1; }
53
54
- name: Run E2E tests
55
run: npm run test:e2e
0 commit comments