This repository was archived by the owner on Jul 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 2424 - 14
2525 - 16
2626 - 18
27- # These fail with a useless error message
28- exclude :
29- - os : windows-latest
30- node : 16
31- - os : windows-latest
32- node : 18
3327 fail-fast : false
3428 name : Testing Node ${{ matrix.node }} on ${{ matrix.os }}
3529 runs-on : ${{ matrix.os }}
@@ -41,14 +35,21 @@ jobs:
4135 - uses : actions/setup-node@v3
4236 with :
4337 node-version : ${{ matrix.node }}
44- - name : Update node-gyp
38+ - name : Update node-gyp for Node 14
4539 if : ${{ matrix.os == 'windows-latest' && matrix.node == '14' }}
4640 run : |
4741 $WhereNode = Get-Command node | Select-Object -ExpandProperty Definition
4842 $NodeDirPath = Split-Path $WhereNode -Parent
4943 $NodeModulesPath = $NodeDirPath + "\node_modules\npm\node_modules\npm-lifecycle"
5044 cd $NodeModulesPath
514546+ - name : Update node-gyp for Node 16 or 18
47+ if : ${{ matrix.os == 'windows-latest' && ( matrix.node == '16' || matrix.node == '18' ) }}
48+ shell : powershell
49+ run : |
50+ npm install --global node-gyp@latest
51+ npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
52+
5253 - run : npm install
5354 - run : npm test
5455
You can’t perform that action at this time.
0 commit comments