Skip to content

Commit

Permalink
ci: separated wsl steps in order to have better error output in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rH4rtinger committed Sep 17, 2024
1 parent 2a0bee7 commit f5dde9d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit f5dde9d

Please sign in to comment.