Skip to content

Commit bf31da1

Browse files
committed
fix(workflows): support mac test workflow with old versions of node by using x64 image
1 parent 183f619 commit bf31da1

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

Diff for: .github/workflows/nodejs.yml

+7-11
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ jobs:
4242
node-version: ${{ matrix.node-version }}
4343
cache: "npm"
4444

45-
- name: Use latest NPM
46-
run: sudo npm i -g npm
47-
4845
- name: Install dependencies
4946
run: npm ci
5047

@@ -66,6 +63,13 @@ jobs:
6663
os: [ubuntu-latest, windows-latest, macos-latest]
6764
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
6865
webpack-version: [latest]
66+
exclude:
67+
- os: macos-latest
68+
node-version: 10.x
69+
- os: macos-latest
70+
node-version: 12.x
71+
- os: macos-latest
72+
node-version: 14.x
6973

7074
runs-on: ${{ matrix.os }}
7175

@@ -86,14 +90,6 @@ jobs:
8690
node-version: ${{ matrix.node-version }}
8791
cache: "npm"
8892

89-
- name: Use latest NPM on ubuntu/macos
90-
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
91-
run: sudo npm i -g npm
92-
93-
- name: Use latest NPM on windows
94-
if: matrix.os == 'windows-latest'
95-
run: npm i -g npm
96-
9793
- name: Install dependencies
9894
run: npm ci
9995

0 commit comments

Comments
 (0)