Skip to content

Commit f747e9d

Browse files
fix: Remove duplicate commands from CI pipeline
1 parent 33a3581 commit f747e9d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)