File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,24 +40,23 @@ jobs:
4040 run : sleep 20
4141
4242 - name : Check API health
43- run : |
44- curl -f http://localhost:3000/health || (echo " Health check failed!" && docker-compose logs ratelimiterapi && exit 1)
43+ run : curl -f http://localhost:3000/health || (echo "Health check failed!" && docker-compose logs ratelimiterapi && exit 1)
4544
4645 - name : Verify health response
4746 run : |
4847 response=$(curl -s http://localhost:3000/health)
49- echo " Health response: $response"
48+ echo "Health response: $response"
5049 if echo "$response" | grep -q "OK"; then
51- echo " API is healthy!"
50+ echo "API is healthy!"
5251 else
53- echo " API health check failed!"
52+ echo "API health check failed!"
5453 exit 1
5554 fi
5655
5756 - name : Show container status
5857 run : docker-compose ps
5958
60- - name : Show logs on success
59+ - name : Show logs
6160 run : docker-compose logs --tail=20
6261
6362 - name : Cleanup
You can’t perform that action at this time.
0 commit comments