Skip to content

Commit ff444bc

Browse files
committed
modify: ci 파이프라인 구성 업데이트 v3
1 parent a0acc5d commit ff444bc

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

.github/workflows/test-ci.yaml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ on:
55
push:
66
branches: ['main']
77
pull_request:
8-
branches:
9-
- main
8+
branches: ['main']
109

1110
jobs:
1211
build-and-test:
1312
runs-on: ubuntu-latest
1413
strategy:
1514
matrix:
1615
node-version: [20, 21, 22, 23]
16+
fail-fast: false # 한 버전 실패 시 전체 중단 방지
17+
1718
steps:
1819
- name: Checkout repository
1920
uses: actions/checkout@v4
@@ -22,16 +23,29 @@ jobs:
2223
uses: actions/setup-node@v4
2324
with:
2425
node-version: ${{ matrix.node-version }}
25-
cache: 'pnpm'
2626

27-
- name: Enable Corepack (for pnpm)
27+
- name: Enable Corepack
2828
run: corepack enable
2929

30-
- name: Install pnpm
31-
run: npm install -g pnpm
30+
- name: Setup pnpm
31+
uses: pnpm/action-setup@v2
32+
with:
33+
version: 9
34+
run_install: false
3235

33-
- name: Verify pnpm installation
34-
run: pnpm --version
36+
- name: Get pnpm store directory
37+
id: pnpm-cache
38+
shell: bash
39+
run: |
40+
echo "store-path=$(pnpm store path)" >> $GITHUB_OUTPUT
41+
42+
- name: Setup pnpm cache
43+
uses: actions/cache@v3
44+
with:
45+
path: ${{ steps.pnpm-cache.outputs.store-path }}
46+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
47+
restore-keys: |
48+
${{ runner.os }}-pnpm-store-
3549
3650
- name: Install dependencies
3751
run: pnpm install --frozen-lockfile
@@ -43,4 +57,4 @@ jobs:
4357
run: pnpm run test
4458

4559
- name: Run build
46-
run: pnpm run build
60+
run: pnpm run build

0 commit comments

Comments
 (0)