From f20b6950d65521ff68e3e432875ab4dec3c4a11f Mon Sep 17 00:00:00 2001 From: Charan Sai Date: Sat, 6 Jun 2026 18:47:18 +0530 Subject: [PATCH 1/2] ci: update build-check workflow --- .github/workflows/build-check.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/build-check.yml diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml new file mode 100644 index 0000000..e69de29 From 90cfac90d9ccab7adfe30b2e5555d1b8628ba29e Mon Sep 17 00:00:00 2001 From: Charan Sai Date: Sat, 6 Jun 2026 18:50:28 +0530 Subject: [PATCH 2/2] ci: update build-check workflow --- .github/workflows/build-check.yml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index e69de29..c407763 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -0,0 +1,44 @@ +name: Core CI Pipeline + +on: + pull_request: + branches: [ main ] + push: + branches: [ main ] + +jobs: + validate-and-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install Dependencies + run: npm install + + - name: Check Code Formatting (Prettier) + # This ensures all code matches the same style (spaces, quotes, etc.) + run: npx prettier --check "frontend/src/**/*.{js,jsx}" "backend/src/**/*.js" + + - name: Run Linter + # Catches bad syntax, unused variables, and logical errors + run: npm run lint --if-present + + - name: Validate Prisma Schema + # Ensures the database relationships and syntax are correct + run: npx prisma validate --schema=backend/prisma/schema.prisma + + - name: Test Prisma Client Generation + # Ensures Prisma can successfully build the client from the schema + run: npx prisma generate --schema=backend/prisma/schema.prisma + + - name: Build Frontend + # Compiles the Vite React app to guarantee it actually builds + run: npm --workspace frontend run build \ No newline at end of file