Skip to content

Commit 075ced1

Browse files
committed
[task/103] CI/CD 파이프라인 생성
1 parent 428c9da commit 075ced1

2 files changed

Lines changed: 39 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*"
7+
8+
jobs:
9+
build-test-lint-typecheck:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 코드 체크아웃
13+
uses: actions/checkout@v4
14+
15+
- name: Node.js 설정
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 22
19+
cache: 'npm'
20+
21+
- name: 의존성 설치
22+
run: npm ci
23+
24+
- name: Vite 프로젝트 빌드
25+
run: npm run build
26+
27+
- name: 린트 체크
28+
run: npm run lint:check
29+
30+
- name: 프리티어 체크
31+
run: npm run prettier:check
32+
33+
- name: 타입 체크
34+
run: npm run type:check || echo "No type:check script"
35+
36+
- name: 테스트
37+
run: npm run test || echo "No test script defined"

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
- name: Node.js 설정
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: 18
22+
node-version: 22
2323
cache: 'npm'
2424

2525
- name: 의존성 설치
26-
run: npm install
26+
run: npm ci
2727

2828
- name: Vite 프로젝트 빌드
2929
run: npm run build

0 commit comments

Comments
 (0)