From 2a0bee7bf25417b094fb6b032f75b24a05f74861 Mon Sep 17 00:00:00 2001 From: Ramona Hartinger Date: Tue, 17 Sep 2024 12:49:14 +0200 Subject: [PATCH] ci: changed wsl commands --- .github/workflows/nodejs.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 05c0368..4bf1d8b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -36,14 +36,20 @@ jobs: # Update the WSL wsl --update + # list all distros + wsl --list + + # list all available distros + wsl --list --online + # Set WSL Version 2 as default wsl --set-default-version 2 # Install Ubuntu WSL distribution - wsl --install Ubuntu + wsl --install Ubuntu-22.04 - # Set Ubuntu 20.04 as default distribution (optional, if multiple distributions are installed) - wsl --set-default Ubuntu + # Set Ubuntu as default distribution (optional, if multiple distributions are installed) + wsl --set-default Ubuntu-22.04 # Update Ubuntu and install Docker in WSL wsl sudo apt-get update