Skip to content

Commit 28289de

Browse files
committed
Move from yarn to pnpm
1 parent a5ba59d commit 28289de

6 files changed

Lines changed: 3596 additions & 3452 deletions

File tree

.github/workflows/test.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
name: Test
2-
"on":
3-
push: null
4-
pull_request: null
5-
env:
6-
FORCE_COLOR: 2
2+
on:
3+
push:
4+
pull_request:
75
jobs:
86
full:
9-
name: Node.js 16 Full
7+
name: Node.js 17 Full
108
runs-on: ubuntu-latest
119
steps:
1210
- name: Checkout the repository
1311
uses: actions/checkout@v2
12+
- name: Install pnpm
13+
uses: pnpm/action-setup@v2
14+
with:
15+
version: latest
1416
- name: Install Node.js
1517
uses: actions/setup-node@v2
1618
with:
1719
node-version: 17
20+
cache: pnpm
1821
- name: Install dependencies
19-
uses: bahmutov/npm-install@v1
22+
run: pnpm install --frozen-lockfile --ignore-scripts
2023
- name: Run tests
21-
run: yarn test
24+
run: pnpm test
25+
env:
26+
FORCE_COLOR: 2
2227
short:
2328
runs-on: ubuntu-latest
2429
strategy:
@@ -31,11 +36,18 @@ jobs:
3136
steps:
3237
- name: Checkout the repository
3338
uses: actions/checkout@v2
39+
- name: Install pnpm
40+
uses: pnpm/action-setup@v2
41+
with:
42+
version: latest
3443
- name: Install Node.js ${{ matrix.node-version }}
3544
uses: actions/setup-node@v2
3645
with:
3746
node-version: ${{ matrix.node-version }}
47+
cache: pnpm
3848
- name: Install dependencies
39-
uses: bahmutov/npm-install@v1
49+
run: pnpm install --frozen-lockfile --ignore-scripts
4050
- name: Run unit tests
41-
run: npx jest
51+
run: pnpm unit
52+
env:
53+
FORCE_COLOR: 2

.gitignore

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

4-
coverage/
3+
coverage/

.npmignore

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

43
*.test.js
54
coverage/
6-
.github/
5+
.github/

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"nested"
1111
],
1212
"scripts": {
13+
"unit": "jest",
1314
"test": "jest --coverage && eslint ."
1415
},
1516
"author": "Andrey Sitnik <[email protected]>",

0 commit comments

Comments
 (0)