Browse Source

Merge pull request #2026 from cheahjs/fix/integration-test-wait-ollama

fix: wait for Ollama to come up in integration test
Timothy Jaeryang Baek 1 năm trước cách đây
mục cha
commit
ba09fcd548
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  1. 10 1
      .github/workflows/integration-test.yml

+ 10 - 1
.github/workflows/integration-test.yml

@@ -20,7 +20,16 @@ jobs:
 
       - name: Build and run Compose Stack
         run: |
-          docker compose up --detach --build
+          docker compose --file docker-compose.yaml --file docker-compose.api.yaml up --detach --build
+          
+      - name: Wait for Ollama to be up
+        timeout-minutes: 5
+        run: |
+          until curl --output /dev/null --silent --fail http://localhost:11434; do
+            printf '.'
+            sleep 1
+          done
+          echo "Service is up!"
 
       - name: Preload Ollama model
         run: |