From 277b352825488e8c26b03425c815f68b8b9d6aa5 Mon Sep 17 00:00:00 2001 From: Utkarsh-Anandani Date: Sat, 18 Jan 2025 20:39:08 +0530 Subject: [PATCH 1/4] changes --- .github/workflows/build.yml => build.yml | 0 .github/workflows/push.yml => push.yml | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/build.yml => build.yml (100%) rename .github/workflows/push.yml => push.yml (100%) diff --git a/.github/workflows/build.yml b/build.yml similarity index 100% rename from .github/workflows/build.yml rename to build.yml diff --git a/.github/workflows/push.yml b/push.yml similarity index 100% rename from .github/workflows/push.yml rename to push.yml From bfcceb332d83a6f13aab28540993895924979d3b Mon Sep 17 00:00:00 2001 From: Utkarsh-Anandani Date: Sat, 18 Jan 2025 20:52:15 +0530 Subject: [PATCH 2/4] added CI pipeline --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1268d31 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: Build on PR + +on: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install Dependencies + run: npm install + + - name: Generate Prisma Client + run: npm run db:generate + + - name: Run Build + run: npm run build \ No newline at end of file diff --git a/package.json b/package.json index dbddf4e..23f13fd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "dev": "turbo dev", "lint": "turbo lint", "format": "prettier --write \"**/*.{ts,tsx,md}\"", - "start-user-app": "cd ./apps/user-app && npm run start" + "start-user-app": "cd ./apps/user-app && npm run start", + "db:generate": "cd packages/db && npx prisma generate && cd ../.." }, "devDependencies": { "@repo/eslint-config": "*", From 42909932cb297cf20cc7ce3b120d867cc1bdebd8 Mon Sep 17 00:00:00 2001 From: Utkarsh-Anandani Date: Sat, 18 Jan 2025 20:54:36 +0530 Subject: [PATCH 3/4] check-CI --- apps/bank-webhook/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/bank-webhook/src/index.ts b/apps/bank-webhook/src/index.ts index bb92555..1ea0bdf 100644 --- a/apps/bank-webhook/src/index.ts +++ b/apps/bank-webhook/src/index.ts @@ -2,6 +2,9 @@ import express from "express"; import db from "@repo/db/client"; const app = express(); + + + app.use(express.json()) app.post("/hdfcWebhook", async (req, res) => { From f74c5a701cab28a599e5c8375329096d5d16a95e Mon Sep 17 00:00:00 2001 From: Utkarsh-Anandani Date: Sat, 18 Jan 2025 21:00:09 +0530 Subject: [PATCH 4/4] check-CI-2 --- apps/bank-webhook/src/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/bank-webhook/src/index.ts b/apps/bank-webhook/src/index.ts index 1ea0bdf..bb92555 100644 --- a/apps/bank-webhook/src/index.ts +++ b/apps/bank-webhook/src/index.ts @@ -2,9 +2,6 @@ import express from "express"; import db from "@repo/db/client"; const app = express(); - - - app.use(express.json()) app.post("/hdfcWebhook", async (req, res) => {