Skip to content

Commit edd7630

Browse files
committed
chore(workflow): change PM from npm to pnpm
1 parent b04c670 commit edd7630

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

.github/workflows/run-test.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ jobs:
77
- uses: actions/checkout@v2
88
- uses: actions/setup-node@v4
99
with:
10-
node-version: 16
11-
cache: "npm"
12-
cache-dependency-path: "**/package-lock.json"
10+
# 최신 노드 버전 사용
11+
node-version: "22.x"
12+
cache: "pnpm"
13+
cache-dependency-path: "**/pnpm-lock.yaml"
1314
- name: install-root
14-
run: npm install
15+
run: pnpm install
1516
- name: install-unit
16-
working-directory: ./test/unit
17-
run: npm install
17+
working-directory: ./packages/test-flicking/unit
18+
run: pnpm install
1819
- name: run unit test
19-
working-directory: ./test/unit
20-
run: npm run coverage
20+
working-directory: ./packages/test-flicking/unit
21+
run: pnpm run coverage
2122
- name: send coverage
2223
uses: coverallsapp/github-action@master
2324
with:
@@ -32,24 +33,25 @@ jobs:
3233
- uses: actions/checkout@v2
3334
- uses: actions/setup-node@v4
3435
with:
35-
node-version: 16
36-
cache: "npm"
37-
cache-dependency-path: "**/package-lock.json"
36+
# 최신 노드 버전 사용
37+
node-version: "22.x"
38+
cache: "pnpm"
39+
cache-dependency-path: "**/pnpm-lock.yaml"
3840
- name: install-root
39-
run: npm install
41+
run: pnpm install
4042
- name: install-cfc
41-
working-directory: ./test/cfc
42-
run: npm install
43+
working-directory: ./packages/test-flicking/cfc
44+
run: pnpm install
4345
- name: run cfc test
44-
working-directory: ./test/cfc
45-
run: npm run coverage
46+
working-directory: ./packages/test-flicking/cfc
47+
run: pnpm run coverage
4648
- name: send coverage
4749
uses: coverallsapp/github-action@master
4850
with:
4951
github-token: ${{ secrets.GITHUB_TOKEN }}
5052
flag-name: cfc
51-
base-path: ./test/cfc
52-
path-to-lcov: ./test/cfc/coverage/lcov.info
53+
base-path: ./packages/test-flicking/cfc
54+
path-to-lcov: ./packages/test-flicking/cfc/coverage/lcov.info
5355
parallel: true
5456
teardown:
5557
needs: [unit, cfc]

0 commit comments

Comments
 (0)