File tree 1 file changed +9
-12
lines changed
1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,13 @@ jobs:
76
76
- name : Checkout Code
77
77
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
78
78
79
- - name : Update WSL
80
- if : ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
81
- shell : pwsh
82
- run : |
83
- wsl --update
84
- wsl --list --online
85
- wsl --set-default-version 2
86
- wsl --install Ubuntu-22.04
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
+
87
86
88
87
- shell : wsl-bash {0}
89
88
if : ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
99
98
shell : pwsh
100
99
run : |
101
100
wsl -l -v
102
- wsl --set-default-version 2
103
101
104
102
- name : WSL Install Helm
105
103
if : ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
@@ -150,10 +148,9 @@ jobs:
150
148
if : ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
151
149
shell : wsl-bash {0}
152
150
run : |
153
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
154
- nvm install node
151
+ sudo apt-get -y install nodejs npm
155
152
node -v
156
- npm -v
153
+ npm -v
157
154
158
155
- name : WSL Run Docker
159
156
if : ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
You can’t perform that action at this time.
0 commit comments