diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 4bf1d8b..dc5bef6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -26,6 +26,27 @@ jobs: java-version: 21 distribution: temurin + - name: Enable WSL and Virtual Machine Platform + if: runner.os == 'Windows' + run: | + dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart + dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart + + - name: Check WSL Version and Status + if: runner.os == 'Windows' + run: | + wsl --list --verbose + wsl --list --online + wsl --status + + - name: Update WSL + if: runner.os == 'Windows' + run: wsl --update + + - name: Install Ubuntu 22.04 + if: runner.os == 'Windows' + run: wsl --install -d Ubuntu-22.04 + - name: Install and Run Docker in WSL if: runner.os == 'Windows' run: |