diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 17dce1b..daa4c50 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -126,7 +126,14 @@ jobs: - name: Monitor memory usage run: free -h - name: Test port accessibility - run: curl -v http://localhost:8004 + run: | + # Attempt to connect to the service on localhost:8004 + echo "Testing port accessibility on localhost:8004..." + curl -v http://localhost:8004 || { + echo "Port 8004 is not accessible!" + exit 1 + } + echo "Port 8004 is accessible." - name: Get container logs if: failure() run: docker logs backend-backend