Skip to content

Commit c5e5955

Browse files
authored
[Setting/#128] GitHub Actions CI 환경설정 추가 (#129)
* setting: GitHub Actions CI 설정 추가 * fix: GitHub Actions pnpm 버전 중복 지정으로 인한 오류 수정 * fix: node버전 기존 24에서 22로 수정
1 parent c55caf0 commit c5e5955

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
branches:
9+
- develop
10+
11+
jobs:
12+
lint-and-build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: 레포지토리 체크아웃
17+
uses: actions/checkout@v4
18+
19+
- name: pnpm 설치
20+
uses: pnpm/action-setup@v5
21+
22+
- name: Node.js 설치
23+
uses: actions/setup-node@v6
24+
with:
25+
node-version: 22
26+
cache: pnpm
27+
28+
- name: 의존성 설치
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: ESLint 검사
32+
run: pnpm lint
33+
34+
- name: Build 검사
35+
run: pnpm build

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"format:check": "prettier . --check",
1414
"prepare": "husky"
1515
},
16+
"packageManager": "pnpm@10.0.0",
1617
"lint-staged": {
1718
"*.{js,jsx,ts,tsx}": [
1819
"eslint --fix",

0 commit comments

Comments
 (0)