Windows test #69
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Windows Tests" | |
on: | |
push: | |
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 --list --online | |
wsl --set-version Ubuntu-24.04 2 | |
wsl --update | |
wsl --set-default-version 2 | |
wsl --shutdown | |
wsl --status | |
- name: Install minikube in WSL | |
shell: wsl-bash {0} | |
run: | | |
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install -y ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | |
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 | |
sudo docker info |