Skip to content

Update BusBookingSystemApplicationTests.java #19

Update BusBookingSystemApplicationTests.java

Update BusBookingSystemApplicationTests.java #19

Workflow file for this run

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 .