feat(user-management): update docs #95
Workflow file for this run
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: Docker Compose Integration | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| docker-compose-integration: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Start services | |
| run: docker compose up -d | |
| - name: Wait for services to be healthy | |
| run: | | |
| echo Pausing for 60s to allow services to start | |
| sleep 60 | |
| docker compose ps | |
| - name: Test dashboard endpoints | |
| run: | | |
| curl -f http://localhost:8081/dashboard/ || exit 1 | |
| curl -f http://localhost:8082 || exit 1 | |
| - name: Test API endpoints | |
| run: | | |
| # Test sticker award API with sample user data | |
| curl -f -X GET "http://localhost:8080/api/awards/v1/assignments/user-001" || exit 1 | |
| curl -f -X GET "http://localhost:8080/api/users/v1/health" || exit 1 | |
| - name: Show service logs on failure | |
| if: failure() | |
| run: | | |
| echo "=== Docker Compose Services Status ===" | |
| docker compose ps | |
| echo "=== All Service Logs ===" | |
| docker compose logs --tail=50 | |
| echo "=== Health Check Details ===" | |
| docker compose ps --format "table {{.Name}}\t{{.Status}}\t{{.Health}}" | |
| echo "=== Resource Usage ===" | |
| docker stats --no-stream | |
| - name: Cleanup | |
| if: always() | |
| run: docker compose down -v |