Skip to content

Commit d55b1bf

Browse files
committed
simplify wait
1 parent 6ced08f commit d55b1bf

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.github/workflows/test-upload-local.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,7 @@ jobs:
8080
8181
# Start services using our tagged images
8282
docker compose -f ${{ env.COMPOSE_FILE }} up -d
83-
84-
- name: Wait for services to be ready
85-
run: |
86-
# Wait for MongoDB
87-
timeout 60 bash -c 'until docker compose -f ${{ env.COMPOSE_FILE }} exec -T mongo mongosh --eval "db.adminCommand(\"ping\")" > /dev/null 2>&1; do sleep 2; done'
88-
89-
# Wait for API
90-
timeout 60 bash -c 'until curl -s http://localhost:8082/health > /dev/null; do sleep 2; done'
91-
92-
# Wait for UI
93-
timeout 60 bash -c 'until curl -s http://localhost:3000 > /dev/null; do sleep 2; done'
83+
sleep 30
9484
9585
- name: Install uv
9686
run: |
@@ -100,18 +90,6 @@ jobs:
10090
- name: Verify uv installation
10191
run: uv --version
10292

103-
- name: Setup test environment
104-
run: |
105-
cd test
106-
make setup-test
107-
10893
- name: Run upload test
10994
run: |
110-
cd test
11195
make test-upload
112-
113-
- name: Cleanup
114-
if: always()
115-
run: |
116-
docker compose -f ${{ env.COMPOSE_FILE }} down
117-
docker system prune -f

0 commit comments

Comments
 (0)