Skip to content

Commit 0dd85de

Browse files
committed
run legacy node tests with npm
1 parent 570b235 commit 0dd85de

2 files changed

Lines changed: 31 additions & 11 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,43 @@ jobs:
2626
- name: lint
2727
run: yarn lint
2828

29+
legacy-node-test:
30+
name: Tests
31+
runs-on: ubuntu-latest
32+
33+
strategy:
34+
matrix:
35+
node: ['6', '8', '10', '12', '14', '16', '18']
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-node@v4
40+
with:
41+
node-version: ${{ matrix.node }}
42+
- name: install dependencies
43+
run: npm install
44+
- name: test
45+
run: npm run test
46+
2947
test:
3048
name: Tests
3149
runs-on: ubuntu-latest
3250

3351
strategy:
3452
matrix:
35-
node: ['6', '8', '10', '12', '14']
53+
node: ['20', '22', '24']
3654

3755
steps:
38-
- uses: actions/checkout@v1
39-
- uses: actions/setup-node@v1
56+
- uses: actions/checkout@v4
57+
- uses: pnpm/action-setup@v4
58+
- uses: actions/setup-node@v4
4059
with:
4160
node-version: ${{ matrix.node }}
61+
cache: pnpm
4262
- name: install dependencies
43-
run: yarn install --frozen-lockfile --ignore-engines
63+
run: pnpm install
4464
- name: test
45-
run: yarn test
65+
run: pnpm run test
4666

4767
floating-test:
4868
name: Floating dependencies
@@ -54,6 +74,6 @@ jobs:
5474
with:
5575
node-version: '12.x'
5676
- name: install dependencies
57-
run: yarn install --no-lockfile --ignore-engines
77+
run: pnpm install --no-lockfile
5878
- name: test
59-
run: yarn test
79+
run: pnpm test

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)