File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 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 # 빌드하지 않고 타입 오류만 체크
You can’t perform that action at this time.
0 commit comments