-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (34 loc) · 917 Bytes
/
ci.yml
File metadata and controls
44 lines (34 loc) · 917 Bytes
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
name: 프론트엔드 CI (React + Vite)
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
ci:
name: 프론트엔드 코드 검사 및 빌드
runs-on: ubuntu-latest
steps:
- name: 코드 체크아웃
uses: actions/checkout@v4
- name: Node.js 설정
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: 의존성 설치
run: npm ci
- name: Prettier 포맷 검사
run: npm run format:check
- name: ESLint 검사
run: npm run lint
- name: 타입스크립트 타입 체크
run: npx tsc --noEmit
- name: Vite 빌드
run: npm run build
- name: 빌드 결과 업로드
uses: actions/upload-artifact@v4
with:
name: fe-dist
path: dist
if-no-files-found: error