@@ -76,12 +76,28 @@ jobs:
76
76
- name : Checkout Code
77
77
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
78
78
79
+ - name : WSL Install
80
+ uses : Vampire/setup-wsl@v3
81
+ if : ${{ runner.os == 'Windows' && (inputs.enable-unit-tests || inputs.enable-e2e-tests) && !cancelled() && !failure() }}
82
+ with :
83
+ distribution : Ubuntu-22.04
84
+ set-as-default : ' true'
85
+
86
+ - name : Get WSL Info
87
+ if : ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
88
+ run : |
89
+ wsl --list --verbose
90
+
91
+ - shell : wsl-bash {0}
92
+ run : pwd
93
+
79
94
- name : Setup Node
80
95
uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
81
96
with :
82
97
node-version : ${{ inputs.node-version }}
83
98
cache : npm
84
99
100
+
85
101
- name : Setup Java
86
102
uses : actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0
87
103
if : ${{ inputs.enable-e2e-tests && !cancelled() && !failure() }}
@@ -100,32 +116,6 @@ jobs:
100
116
verbosity : 3
101
117
wait : 120s
102
118
103
- - name : Install scoop for Windows
104
- id : install-scoop-windows
105
- if : ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
106
- shell : pwsh
107
- run : |
108
- Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
109
- Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
110
- scoop install main/kind
111
- scoop install kubectl
112
- Get-WindowsFeature
113
- # choco install docker-cli
114
- # cd "C:\ProgramData\chocolatey\lib\docker-cli\bin"
115
- # dir
116
-
117
- - name : WSL Install
118
- uses : Vampire/setup-wsl@v3
119
- if : ${{ runner.os == 'Windows' && (inputs.enable-unit-tests || inputs.enable-e2e-tests) && !cancelled() && !failure() }}
120
- with :
121
- distribution : Ubuntu-22.04
122
- set-as-default : ' true'
123
-
124
- - name : Get WSL Info
125
- if : ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
126
- run : |
127
- wsl --list --verbose
128
- wsl --status
129
119
130
120
- name : Setup Helm
131
121
uses : azure/setup-helm@29960d0f5f19214b88e1d9ba750a9914ab0f1a2f # v4.0.0
0 commit comments