Skip to content

Commit 05a6a12

Browse files
committed
Fix: yml
1 parent 72b33fc commit 05a6a12

1 file changed

Lines changed: 14 additions & 19 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [main, develop]
5+
branches: [main]
66
pull_request:
77
branches: [main, develop]
88
types: [opened, synchronize, reopened, ready_for_review]
@@ -12,29 +12,24 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- name: 소스코드 체크아웃
16+
uses: actions/checkout@v3
1617

17-
- name: Node.js 세팅
18+
- name: Node.js 설정
1819
uses: actions/setup-node@v3
1920
with:
2021
node-version: "18"
2122

22-
- name: npm 설치
23-
uses: npm/action-setup@v2
24-
with:
25-
version: 8
26-
27-
- name: npm store 경로 가져오기
28-
id: store-path
29-
run: echo "path=$(npm store path --silent)" >> $GITHUB_OUTPUT
23+
- name: npm 최신 버전 설치 (선택 사항)
24+
run: npm install -g npm@8
3025

31-
- uses: actions/cache@v3
32-
name: npm 캐시 설정
26+
- name: npm 캐시 설정
27+
uses: actions/cache@v3
3328
with:
34-
path: ${{ steps.store-path.outputs.path }}
35-
key: ${{ runner.os }}-npm-store-${{ hashFiles('**/npm-lock.yaml') }}
29+
path: ~/.npm
30+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
3631
restore-keys: |
37-
${{ runner.os }}-npm-store-
32+
${{ runner.os }}-node-
3833
3934
- name: 의존성 설치
4035
run: npm install --frozen-lockfile
@@ -43,7 +38,7 @@ jobs:
4338
run: npm run lint
4439

4540
- name: 테스트
46-
run: npm test
41+
run: npm run test
4742

4843
- name: 빌드
4944
run: npm run build
@@ -60,8 +55,8 @@ jobs:
6055
const pr = context.payload.pull_request;
6156
const status = '${{ job.status }}';
6257
const message = status === 'success'
63-
? '✅ CI success'
64-
: '❌ CI failed';
58+
? '✅ CI 성공'
59+
: '❌ CI 실패';
6560
6661
github.rest.issues.createComment({
6762
issue_number: pr.number,

0 commit comments

Comments
 (0)