42
42
node-version : ${{ matrix.node-version }}
43
43
cache : " npm"
44
44
45
- - name : Use latest NPM
46
- run : sudo npm i -g npm
47
-
48
45
- name : Install dependencies
49
46
run : npm ci
50
47
66
63
os : [ubuntu-latest, windows-latest, macos-latest]
67
64
node-version : [10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
68
65
webpack-version : [latest]
66
+ exclude :
67
+ - os : windows-latest
68
+ node-version : 10.x
69
+ - os : macos-latest
70
+ node-version : 10.x
71
+ - os : macos-latest
72
+ node-version : 12.x
73
+ - os : macos-latest
74
+ node-version : 14.x
69
75
70
76
runs-on : ${{ matrix.os }}
71
77
@@ -86,13 +92,21 @@ jobs:
86
92
node-version : ${{ matrix.node-version }}
87
93
cache : " npm"
88
94
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
95
+ - name : Update node-gyp on windows
96
+ if : matrix.os == 'windows-latest' && (matrix.node-version == '12.x' || matrix.node-version == '14.x')
97
+ run :
Get-Command node | Select-Object -ExpandProperty Source | Join-Path -ChildPath "..\node_modules\npm\node_modules\npm-lifecycle" -Resolve | Push-Location; npm install [email protected] ; Pop-Location
98
+
99
+ - name : Install Python setuptools on ubuntu
100
+ if : matrix.os == 'ubuntu-latest'
101
+ run : python3 -m pip install setuptools
102
+
103
+ - name : Install Python setuptools on macos
104
+ if : matrix.os == 'macos-latest'
105
+ run : brew install python-setuptools
92
106
93
- - name : Use latest NPM on windows
107
+ - name : Install Python setuptools on windows
94
108
if : matrix.os == 'windows-latest'
95
- run : npm i -g npm
109
+ run : python -m pip install setuptools
96
110
97
111
- name : Install dependencies
98
112
run : npm ci
0 commit comments