Update BusBookingSystemApplicationTests.java #19
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: Sarathi CI Pipeline | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| # ========================= | |
| # Backend Build | |
| # ========================= | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| cache: maven | |
| - name: Build Backend | |
| run: mvn -B clean verify | |
| # ========================= | |
| # Frontend Build | |
| # ========================= | |
| frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install Dependencies | |
| run: | | |
| cd frontend | |
| npm install | |
| - name: Build Frontend | |
| run: | | |
| cd frontend | |
| npm run build | |
| # ========================= | |
| # Docker Build | |
| # ========================= | |
| docker: | |
| runs-on: ubuntu-latest | |
| needs: [backend] | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Build Docker Image | |
| run: | | |
| docker build -t sarathi-backend . |