Skip to content

Commit 678ed7a

Browse files
committed
ci: install older jest for Node 10/12 and 14/16
Jest v30 requires Node 18.14+, so the newer test matrix rows can't run the project's pinned jest. Install jest@27 on Node 10/12 and jest@29 on Node 14/16 alongside the existing cssnano downgrade step.
1 parent f7fc8a1 commit 678ed7a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ jobs:
118118
if: matrix.node-version == '14.x' || matrix.node-version == '16.x'
119119
run: npm install -D --no-save cssnano@^6 --force
120120

121+
- name: Install older jest (Node 10/12)
122+
if: matrix.node-version == '10.x' || matrix.node-version == '12.x'
123+
run: npm install -D --no-save jest@^27 --force
124+
125+
- name: Install older jest (Node 14/16)
126+
if: matrix.node-version == '14.x' || matrix.node-version == '16.x'
127+
run: npm install -D --no-save jest@^29 --force
128+
121129
- name: Install webpack ${{ matrix.webpack-version }}
122130
if: matrix.webpack-version != 'latest'
123131
run: npm i webpack@${{ matrix.webpack-version }}

0 commit comments

Comments
 (0)