Skip to content

Commit 5001747

Browse files
committed
test: use pnpm in workflow
1 parent 0de730c commit 5001747

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ jobs:
1212
node-version: [14.x]
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
16+
- uses: pnpm/action-setup@v2
17+
with:
18+
version: 7
1619
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v3
1821
with:
1922
node-version: ${{ matrix.node-version }}
23+
cache: 'pnpm'
2024
- name: Install dependencies
21-
run: yarn
25+
run: pnpm install
2226
- name: Build
23-
run: yarn build:prod
27+
run: pnpm run build:prod
2428
- name: Run tests
25-
run: yarn test
29+
run: pnpm run test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"format": "prettier src/**/*.ts scripts/**/*.js --write",
3030
"build": "rimraf dist && cross-env NODE_ENV=development node scripts/build.js",
3131
"build:prod": "rimraf dist && cross-env NODE_ENV=production node scripts/build.js",
32-
"test": "yarn build:prod && vitest run --coverage",
32+
"test": "pnpm build:prod && vitest run --coverage",
3333
"node:script": "node -r esm ./scripts/generate/run-node.js",
3434
"demo": "pnpm run build && vite --port 3000",
3535
"patch": "generi log patch",

0 commit comments

Comments
 (0)