Skip to content

Commit 21db1dc

Browse files
committed
save
1 parent 60110fa commit 21db1dc

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/zxc-compile-code.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,54 @@ jobs:
9595
ls -ltr
9696
uname -a
9797
98+
- name: WSL Install Helm
99+
if: ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
100+
shell: wsl-bash {0}
101+
run: |
102+
103+
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
104+
sudo apt-get install apt-transport-https --yes
105+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
106+
sudo apt-get update
107+
sudo apt-get -y install helm
108+
109+
- name: WSL Install Kind
110+
if: ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
111+
shell: wsl-bash {0}
112+
run: |
113+
[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64
114+
chmod +x ./kind
115+
sudo mv ./kind /usr/local/bin/kind
116+
117+
- name: WSL Install NodeJS
118+
if: ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
119+
shell: wsl-bash {0}
120+
run: |
121+
sudo apt update
122+
sudo apt -y install nodejs npm
123+
node -v
124+
125+
- name: WSL Install Docker
126+
if: ${{ runner.os == 'Windows' && inputs.enable-e2e-tests && !cancelled() && !failure() }}
127+
shell: wsl-bash {0}
128+
run: |
129+
130+
sudo apt-get update
131+
sudo apt-get install ca-certificates curl
132+
sudo install -m 0755 -d /etc/apt/keyrings
133+
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
134+
sudo chmod a+r /etc/apt/keyrings/docker.asc
135+
136+
# Add the repository to Apt sources:
137+
echo \
138+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
139+
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
140+
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
141+
sudo apt-get update
142+
143+
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
144+
sudo docker run hello-world
145+
98146
- name: Setup Node
99147
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
100148
with:

0 commit comments

Comments
 (0)