Skip to content

Commit 37b25df

Browse files
committed
Move to pnpm 8
1 parent d96f392 commit 37b25df

File tree

2 files changed

+525
-493
lines changed

2 files changed

+525
-493
lines changed

.github/workflows/test.yml

+10-12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches:
55
- main
66
pull_request:
7+
permissions:
8+
contents: read
79
jobs:
810
full:
911
name: Node.js Latest Full
@@ -14,33 +16,32 @@ jobs:
1416
- name: Install pnpm
1517
uses: pnpm/action-setup@v2
1618
with:
17-
version: latest
19+
version: 8
1820
- name: Install Node.js
1921
uses: actions/setup-node@v3
2022
with:
21-
node-version: 18
23+
node-version: 21
2224
cache: pnpm
2325
- name: Install dependencies
2426
run: pnpm install --frozen-lockfile --ignore-scripts
2527
- name: Run tests
2628
run: pnpm test
27-
env:
28-
FORCE_COLOR: 2
2929
short:
3030
runs-on: ubuntu-latest
3131
strategy:
3232
matrix:
3333
node-version:
34+
- 20
35+
- 18
3436
- 16
35-
- 14
3637
name: Node.js ${{ matrix.node-version }} Quick
3738
steps:
3839
- name: Checkout the repository
3940
uses: actions/checkout@v3
4041
- name: Install pnpm
4142
uses: pnpm/action-setup@v2
4243
with:
43-
version: latest
44+
version: 8
4445
- name: Install Node.js ${{ matrix.node-version }}
4546
uses: actions/setup-node@v3
4647
with:
@@ -50,13 +51,12 @@ jobs:
5051
run: pnpm install --frozen-lockfile --ignore-scripts
5152
- name: Run unit tests
5253
run: pnpm unit
53-
env:
54-
FORCE_COLOR: 2
5554
old:
5655
runs-on: ubuntu-latest
5756
strategy:
5857
matrix:
5958
node-version:
59+
- 14
6060
- 12
6161
- 10
6262
name: Node.js ${{ matrix.node-version }} Quick
@@ -74,11 +74,9 @@ jobs:
7474
with:
7575
node-version: ${{ matrix.node-version }}
7676
- name: Install dependencies
77-
run: pnpm install --frozen-lockfile --ignore-scripts
77+
run: pnpm install --no-frozen-lockfile --ignore-scripts
7878
- name: Run unit tests
7979
run: pnpm unit
80-
env:
81-
FORCE_COLOR: 2
8280
benchmark:
8381
name: Benchmark
8482
runs-on: ubuntu-latest
@@ -88,7 +86,7 @@ jobs:
8886
- name: Install pnpm
8987
uses: pnpm/action-setup@v2
9088
with:
91-
version: latest
89+
version: 8
9290
- name: Install Node.js
9391
uses: actions/setup-node@v3
9492
with:

0 commit comments

Comments
 (0)