Skip to content

Commit 5952787

Browse files
committed
fix(workflows): exclude node versions that don't have arm distributions from mac test workflow
1 parent 183f619 commit 5952787

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

Diff for: .github/workflows/nodejs.yml

+16-8
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,13 +90,17 @@ 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
93+
- name: Install Python setuptools on ubuntu
94+
if: matrix.os == 'ubuntu-latest'
95+
run: python3 -m pip install setuptools
96+
97+
- name: Install Python setuptools on macos
98+
if: matrix.os == 'macos-latest'
99+
run: brew install python-setuptools
92100

93-
- name: Use latest NPM on windows
101+
- name: Install Python setuptools on windows
94102
if: matrix.os == 'windows-latest'
95-
run: npm i -g npm
103+
run: python -m pip install setuptools
96104

97105
- name: Install dependencies
98106
run: npm ci

0 commit comments

Comments
 (0)