Skip to content

Commit a5bca91

Browse files
committed
ci: add GitHub Actions workflows for frontend and backend
1 parent b5ab89b commit a5bca91

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
frontend:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Install frontend deps
15+
run: npm install
16+
working-directory: frontend
17+
- name: Check ESLint Errors
18+
run: npm run lint
19+
working-directory: frontend
20+
- name: Build frontend
21+
run: npm run build
22+
working-directory: frontend
23+
backend:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Install backend deps
28+
run: npm install
29+
working-directory: backend
30+
- name: Run backend tests
31+
run: npm test
32+
working-directory: backend

0 commit comments

Comments
 (0)