File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ concurrency:
21
21
22
22
jobs :
23
23
test :
24
+ runs-on : ubuntu-latest
24
25
strategy :
25
26
fail-fast : false
26
27
matrix :
27
- os : [ubuntu-latest, windows-latest]
28
28
name :
29
29
- Node.js 0.10
30
30
- Node.js 0.12
@@ -135,30 +135,10 @@ jobs:
135
135
- name : Node.js 21.x
136
136
node-version : " 21.6"
137
137
138
- runs-on : ${{ matrix.os }}
139
138
steps :
140
139
- uses : actions/checkout@v4
141
140
142
- # Install nvm-windows only if the runner is Windows
143
- - name : Install nvm-windows
144
- if : runner.os == 'Windows'
145
- run : |
146
- $nvmInstallUrl = "https://github.com/coreybutler/nvm-windows/releases/download/1.1.9/nvm-setup.zip"
147
- Invoke-WebRequest -Uri $nvmInstallUrl -OutFile "nvm-setup.zip"
148
- Expand-Archive nvm-setup.zip -DestinationPath "$env:GITHUB_WORKSPACE/nvm-setup"
149
- Start-Process -FilePath "$env:GITHUB_WORKSPACE/nvm-setup/nvm-setup.exe" -ArgumentList '/S' -NoNewWindow -Wait
150
- shell : pwsh
151
-
152
- # Install Node.js using nvm-windows on Windows
153
- - name : Install Node.js with nvm-windows
154
- if : runner.os == 'Windows'
155
- run : |
156
- nvm install ${{ matrix.node-version }}
157
- nvm use ${{ matrix.node-version }}
158
- shell : cmd
159
-
160
141
- name : Install Node.js ${{ matrix.node-version }}
161
- if : runner.os == 'Linux'
162
142
shell : bash -eo pipefail -l {0}
163
143
run : |
164
144
nvm install --default ${{ matrix.node-version }}
You can’t perform that action at this time.
0 commit comments