feat(playground): add stdin support, localStorage persist, timeout UI… #186
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Health Check & Auto Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| # Backend Health Check (배포 후 확인) | |
| health-check: | |
| name: Backend Health Check | |
| runs-on: ubuntu-latest | |
| env: | |
| BACKEND_HEALTH_URL: https://c-osine-backend-5z56.onrender.com/health | |
| FRONTEND_URL: https://c-osine-frontend-5z56.onrender.com | |
| steps: | |
| - name: Wait for deployment | |
| run: | | |
| echo "⏳ Waiting 2 minutes for Render deployment..." | |
| sleep 120 | |
| - name: Check backend health | |
| run: | | |
| echo "🏥 Checking backend health at $BACKEND_HEALTH_URL ..." | |
| for i in {1..30}; do | |
| if curl -f -s "$BACKEND_HEALTH_URL" > /dev/null 2>&1; then | |
| echo "✅ Backend is healthy!" | |
| exit 0 | |
| fi | |
| echo "Attempt $i/30 failed, retrying in 10s..." | |
| sleep 10 | |
| done | |
| echo "❌ Backend health check failed after 5 minutes" | |
| exit 1 | |
| - name: Check frontend availability | |
| run: | | |
| echo "🌐 Checking frontend at $FRONTEND_URL ..." | |
| curl -f -s "$FRONTEND_URL" > /dev/null | |
| echo "✅ Frontend is reachable" | |
| - name: Deployment status | |
| if: success() | |
| run: echo "🎉 Deployment successful and healthy!" |