Skip to content

Commit

Permalink
added build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Puneet-NJ committed Jan 4, 2025
1 parent d0027aa commit 6de82b4
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI Pipeline

on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

jobs:
backend:
name: Backend Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend

steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
cache-dependency-path: "./backend/package-lock.json"

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build

frontend:
name: Frontend Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend

steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
cache-dependency-path: "./frontend/package-lock.json"

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build

0 comments on commit 6de82b4

Please sign in to comment.