Skip to content

Commit 0fc566f

Browse files
committed
restore ci.yml to upstream
1 parent 5eded3b commit 0fc566f

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ concurrency:
2121

2222
jobs:
2323
test:
24+
runs-on: ubuntu-latest
2425
strategy:
2526
fail-fast: false
2627
matrix:
27-
os: [ubuntu-latest, windows-latest]
2828
name:
2929
- Node.js 0.10
3030
- Node.js 0.12
@@ -135,30 +135,10 @@ jobs:
135135
- name: Node.js 21.x
136136
node-version: "21.6"
137137

138-
runs-on: ${{ matrix.os }}
139138
steps:
140139
- uses: actions/checkout@v4
141140

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-
160141
- name: Install Node.js ${{ matrix.node-version }}
161-
if: runner.os == 'Linux'
162142
shell: bash -eo pipefail -l {0}
163143
run: |
164144
nvm install --default ${{ matrix.node-version }}

0 commit comments

Comments
 (0)