Skip to content

Commit

Permalink
Windows test
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Hallgren <thomas@tada.se>
  • Loading branch information
thallgren committed Aug 9, 2024
1 parent 6aa3e4d commit 2bf7098
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/wtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@ jobs:
use-wsl-minikube:
runs-on: windows-latest
steps:
# Install the latest Ubuntu distro
- uses: Vampire/setup-wsl@v3
with:
distribution: Ubuntu-24.04

# Not sure why windows-latest still uses wsl1, but it does, and that won't fly with Docker.
- name: Upgrade to WSL-2
shell: powershell
run: |
wsl install --distribution Ubuntu-24.04 --no-launch --web-download
wsl --list --online
wsl --set-version Ubuntu-24.04 2
wsl --status
wsl --version
- uses: Vampire/setup-wsl@v3

# We can't use docker (or WSL2) because virtualization is not available
- name: Install minikube in WSL
shell: wsl-bash {0}
run: |
Expand All @@ -32,11 +37,12 @@ jobs:
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
# Install docker stuff
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Allow your user to access the Docker CLI without needing root access.
sudo usermod -aG docker $USER
echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.profile
docker info
sudo docker info

0 comments on commit 2bf7098

Please sign in to comment.