Skip to content

Commit 9922be8

Browse files
authored
chore: ci 스크립트 추가
1 parent 5719eb9 commit 9922be8

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
- dev-fe
8+
- dev-be
9+
pull_request:
10+
branches:
11+
- dev
12+
- dev-fe
13+
- dev-be
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
workspace: [backend, frontend, shared]
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v3
26+
27+
- name: Setup Node.js
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: '20'
31+
32+
- name: Install dependencies
33+
run: yarn install
34+
35+
- name: Build ${{ matrix.workspace }}
36+
run: |
37+
cd ${{ matrix.workspace }}
38+
yarn build
39+
40+
- name: Lint ${{ matrix.workspace }}
41+
run: |
42+
cd ${{ matrix.workspace }}
43+
yarn lint || exit 1 # Lint 실패 시 종료
44+
45+
- name: TypeScript Check ${{ matrix.workspace }}
46+
run: |
47+
cd ${{ matrix.workspace }}
48+
yarn tsc --noEmit || exit 1 # 빌드하지 않고 타입 오류만 체크

0 commit comments

Comments
 (0)