Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Add healthcheck test for CodeGate #1042

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,23 @@ jobs:
# Check mount configuration
docker inspect $CODEGATE_CONTAINER_NAME -f '{{ json .Mounts }}' | jq

- name: Test the healthcheck endpoint
timeout-minutes: 4
run: |
# Check the healthcheck endpoint is available
while true; do
echo "Checking for healthcheck endpoint in CodeGate..."

if curl --silent --fail --get "http://localhost:8989/health" >/dev/null; then
echo "Healthcheck endpoint is available"
break
else
echo "Healthcheck endpoint not available. Retrying in 5 seconds..."
sleep 5
fi
done
curl "http://localhost:8989/health"

- name: Ensure certificates are available in the container
timeout-minutes: 4
run: |
Expand Down