-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (43 loc) · 1.12 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI Pipeline
on:
push:
branches:
- dev
- dev-fe
- dev-be
pull_request:
branches:
- dev
- dev-fe
- dev-be
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
workspace: [frontend, backend]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: .env setting
run: |
touch ../.env
echo "GITHUB_REGISTRY_TOKEN:${{ secrets.REGISTRY_TOKEN }}" > ../.env
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: yarn install
- name: Build ${{ matrix.workspace }}
run: |
cd ${{ matrix.workspace }}
yarn build
- name: Lint ${{ matrix.workspace }}
run: |
cd ${{ matrix.workspace }}
yarn lint || exit 1 # Lint 실패 시 종료
- name: TypeScript Check ${{ matrix.workspace }}
run: |
cd ${{ matrix.workspace }}
yarn tsc --noEmit || exit 1 # 빌드하지 않고 타입 오류만 체크