File tree 1 file changed +25
-3
lines changed
1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -73,19 +73,41 @@ jobs:
73
73
74
74
windows :
75
75
name : " Windows tests"
76
- runs-on : windows-2022
76
+ runs-on : windows-2022-8-cores
77
77
timeout-minutes : 30
78
78
steps :
79
+ - name : Enable WSL2
80
+ run : |
81
+ wsl --set-default-version 2
82
+ wsl --update
83
+ wsl --status
84
+ wsl --list --online
85
+ - name : Install WSL2 distro
86
+ timeout-minutes : 3
87
+ run : |
88
+ # FIXME: At least one distro has to be installed here,
89
+ # otherwise `wsl --list --verbose` (called from Lima) fails:
90
+ # https://github.com/lima-vm/lima/pull/1826#issuecomment-1729993334
91
+ # The distro image itself is not consumed by Lima.
92
+ # ------------------------------------------------------------------
93
+ # Ubuntu-22.04: gets stuck in some infinite loop during adduser
94
+ # OracleLinux_9_1: almostly silently fails, and just prints "Usage: adduser [options] LOGIN"
95
+ wsl --install -d openSUSE-Leap-15.5
96
+ wsl --list --verbose
79
97
- uses : actions/checkout@v4
80
98
with :
81
99
fetch-depth : 1
82
100
- uses : actions/setup-go@v4
83
101
with :
84
102
go-version : 1.21.x
85
- - name : Unit tests
86
- run : go test -v ./...
87
103
- name : Make
88
104
run : make
105
+ - name : Smoke test
106
+ run : |
107
+ .\_output\bin\limactl.exe start template://experimental/wsl2
108
+ # TODO: run the full integration tests
109
+ - name : Unit tests
110
+ run : go test -v ./...
89
111
90
112
integration :
91
113
name : Integration tests
You can’t perform that action at this time.
0 commit comments