Skip to content

Commit 0d47b91

Browse files
committed
Move from yarn to pnpm
1 parent c2fd84e commit 0d47b91

5 files changed

Lines changed: 4204 additions & 3885 deletions

File tree

.github/workflows/test.yml

Lines changed: 60 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,93 @@ on:
44
pull_request:
55
jobs:
66
full:
7-
name: Node.js 16 Full
7+
name: Node.js 17 Full
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout the repository
1111
uses: actions/checkout@v2
12+
- name: Install pnpm
13+
uses: pnpm/action-setup@v2
14+
with:
15+
version: latest
1216
- name: Install Node.js
1317
uses: actions/setup-node@v2
1418
with:
15-
node-version: 16
16-
cache: yarn
19+
node-version: 17
20+
cache: pnpm
1721
- name: Install dependencies
18-
run: yarn install --frozen-lockfile
22+
run: pnpm install --frozen-lockfile --ignore-scripts
1923
- name: Run tests
20-
run: yarn test
24+
run: pnpm test
2125
env:
2226
FORCE_COLOR: 2
2327
short:
2428
runs-on: ubuntu-latest
2529
strategy:
2630
matrix:
2731
node-version:
32+
- 16
2833
- 14
2934
- 12
30-
- 10
3135
name: Node.js ${{ matrix.node-version }} Quick
3236
steps:
3337
- name: Checkout the repository
3438
uses: actions/checkout@v2
39+
- name: Install pnpm
40+
uses: pnpm/action-setup@v2
41+
with:
42+
version: latest
3543
- name: Install Node.js ${{ matrix.node-version }}
3644
uses: actions/setup-node@v2
3745
with:
3846
node-version: ${{ matrix.node-version }}
39-
cache: yarn
47+
cache: pnpm
48+
- name: Install dependencies
49+
run: pnpm install --frozen-lockfile --ignore-scripts
50+
- name: Run unit tests
51+
run: pnpm unit
52+
env:
53+
FORCE_COLOR: 2
54+
old:
55+
runs-on: ubuntu-latest
56+
name: Node.js 10 Quick
57+
steps:
58+
- name: Checkout the repository
59+
uses: actions/checkout@v2
60+
- name: Install pnpm
61+
uses: pnpm/action-setup@v1
62+
with:
63+
version: 3
64+
env:
65+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
66+
- name: Install Node.js 10
67+
uses: actions/setup-node@v2
68+
with:
69+
node-version: 10
70+
- name: Install dependencies
71+
run: pnpm install --frozen-lockfile --ignore-scripts
72+
- name: Run unit tests
73+
run: pnpm unit
74+
env:
75+
FORCE_COLOR: 2
76+
windows:
77+
runs-on: windows-latest
78+
name: Windows Quick
79+
steps:
80+
- name: Checkout the repository
81+
uses: actions/checkout@v2
82+
- name: Install pnpm
83+
uses: pnpm/action-setup@v2
84+
with:
85+
version: latest
86+
- name: Install Node.js LTS
87+
uses: actions/setup-node@v2
88+
with:
89+
node-version: 16
90+
cache: pnpm
4091
- name: Install dependencies
41-
run: yarn install --frozen-lockfile --ignore-engines
92+
run: pnpm install --frozen-lockfile --ignore-scripts
4293
- name: Run unit tests
43-
run: npx jest
94+
run: pnpm unit
4495
env:
4596
FORCE_COLOR: 2

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
node_modules/
2-
yarn-error.log
32

43
coverage/

.npmignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
yarn-error.log
2-
yarn.lock
1+
pnpm-lock.yaml
32

43
.editorconfig
54
test/
65
coverage/
7-
.travis.yml
86

97
.github/
108
logo.svg

0 commit comments

Comments
 (0)