-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 909 Bytes
/
app-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Qdrant Test - Go Test
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: siddhantprateek/qdrant
- name: Start Docker Compose services
run: docker-compose -f docker-compose.yml up -d
- name: Wait for services to start
run: sleep 20s
- name: Check Qdrant App Server health
run: |
response=$(curl -s -o /dev/null -w "%{http_code}" http://${{ steps.host_ip.outputs.ip }}:80)
if [ $response -eq 200 ]; then
echo "Qdrant App Server is Healthy."
else
echo "Qdrant App Server is not Healthy. Status code: $response"
exit 1
fi
- name: Clean up Docker Compose services
run: docker-compose -f docker-compose.yml down