Skip to content

Commit 70e36f1

Browse files
committed
added ci to check for build step
Signed-off-by: Sayan Banerjee <[email protected]>
1 parent 31efe77 commit 70e36f1

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build Check
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
build-check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Install Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: "npm"
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Run Frontend Build
24+
run: npm run build -w frontend || (echo "Frontend build failed!" && exit 1)
25+
26+
- name: Run Backend Build
27+
run: npm run build -w backend || (echo "Backend build failed!" && exit 1)

0 commit comments

Comments
 (0)