Fix wait service

This commit is contained in:
Fang-Pen Lin
2025-11-12 09:12:50 -08:00
parent 459edd14ce
commit 185f3cc7bf
+6 -6
View File
@@ -58,13 +58,13 @@ jobs:
load: true load: true
- name: Start Infisical - name: Start Infisical
run: docker compose -f docker-compose.dev.yml up -d run: docker compose -f docker-compose.dev.yml up -d
- name: Wait for service to return 200 - name: Wait for API to be ready
uses: nev7n/wait_for_response@v1 uses: nick-fields/retry@v3
with: with:
url: "http://localhost:8080/api/v1/admin/config" # Replace with your service URL timeout_seconds: 60
responseCode: "200" max_attempts: 12
timeout: 60000 command: |
interval: 500 curl -f -X GET http://localhost:8080/api/v1/admin/config
- name: Run bdd tests - name: Run bdd tests
run: npm run test:bdd run: npm run test:bdd
working-directory: backend working-directory: backend