Skip to content

Commit e6645fe

Browse files
ci: fix
1 parent ffa0aa3 commit e6645fe

File tree

2 files changed

+15
-9131
lines changed

2 files changed

+15
-9131
lines changed

.github/workflows/nodejs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,15 @@ jobs:
9999
architecture: ${{ steps.calculate_architecture.outputs.result }}
100100
cache: "npm"
101101

102+
- name: Install dependencies (old Node.js version)
103+
run: |
104+
rm package-lock.json
105+
npm install --ignore-engines
106+
if: matrix.node-version == '12.x' || matrix.node-version == '14.x' || matrix.node-version == '16.x'
107+
102108
- name: Install dependencies
103109
run: npm ci
110+
if: matrix.node-version == '18.x' || matrix.node-version == '20.x' || matrix.node-version == '22.x' || matrix.node-version == '24.x'
104111

105112
- name: Install webpack ${{ matrix.webpack-version }}
106113
if: matrix.webpack-version != 'latest'
@@ -147,8 +154,15 @@ jobs:
147154
architecture: ${{ steps.calculate_architecture.outputs.result }}
148155
cache: "npm"
149156

157+
- name: Install dependencies (old Node.js version)
158+
run: |
159+
rm package-lock.json
160+
npm install --ignore-engines
161+
if: matrix.node-version == '12.x' || matrix.node-version == '14.x' || matrix.node-version == '16.x'
162+
150163
- name: Install dependencies
151164
run: npm ci
165+
if: matrix.node-version == '18.x' || matrix.node-version == '20.x' || matrix.node-version == '22.x' || matrix.node-version == '24.x'
152166

153167
- name: Run tests for webpack version latest with experimentalUseImportModule
154168
run: npm run test:coverage -- --ci

0 commit comments

Comments
 (0)