feat: enhance UI/UX with premium styling and full dark mode support #22
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: CI/CD Pipeline | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| REGISTRY: ghcr.io | |
| jobs: | |
| test-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build and test backend | |
| env: | |
| MONGODB_URI: ${{ secrets.MONGODB_URI }} | |
| JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
| JWT_EXPIRATION: ${{ secrets.JWT_EXPIRATION }} | |
| RAZORPAY_KEY: ${{ secrets.RAZORPAY_KEY }} | |
| RAZORPAY_SECRET: ${{ secrets.RAZORPAY_SECRET }} | |
| MAIL_USERNAME: ${{ secrets.MAIL_USERNAME }} | |
| MAIL_PASSWORD: ${{ secrets.MAIL_PASSWORD }} | |
| SSL_KEY_STORE_PASSWORD: ${{ secrets.SSL_KEY_STORE_PASSWORD }} | |
| run: | | |
| cd backend/backend | |
| mvn clean verify | |
| test-frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 24 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| cache-dependency-path: frontend/queue-less-frontend/package-lock.json | |
| - name: Install dependencies | |
| run: | | |
| cd frontend/queue-less-frontend | |
| npm ci | |
| - name: Build frontend | |
| env: | |
| VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }} | |
| run: | | |
| cd frontend/queue-less-frontend | |
| npm run build | |
| build-and-push: | |
| needs: [test-backend, test-frontend] | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set lowercase image names | |
| run: | | |
| REPO_LC=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') | |
| echo "IMAGE_NAME_BACKEND=${REPO_LC}/backend" >> $GITHUB_ENV | |
| echo "IMAGE_NAME_FRONTEND=${REPO_LC}/frontend" >> $GITHUB_ENV | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push backend | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ./backend/backend | |
| push: true | |
| tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BACKEND }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BACKEND }}:${{ github.sha }} | |
| - name: Build and push frontend | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: ./frontend/queue-less-frontend | |
| push: true | |
| tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_FRONTEND }}:latest, ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_FRONTEND }}:${{ github.sha }} |