Skip to content

Commit 4bf9e05

Browse files
committed
Start CSI Proxy before running windows unit tests
1 parent 65f6394 commit 4bf9e05

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/windows.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,25 @@ jobs:
1818
with:
1919
go-version: ${{ matrix.go-version }}
2020
- name: Checkout code
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v2
2222
- name: Build Test
2323
run: |
2424
make smb-windows
2525
- name: Run Windows Unit Tests
2626
run: |
27+
# start the CSI Proxy before running tests on windows
28+
Start-Job -Name CSIProx -ScriptBlock {
29+
Invoke-WebRequest https://kubernetesartifacts.azureedge.net/csi-proxy/v0.2.1/binaries/csi-proxy.tar.gz -OutFile csi-proxy.tar.gz;
30+
tar -xvf csi-proxy.tar.gz
31+
.\bin\csi-proxy.exe --kubelet-csi-plugins-path $pwd --kubelet-pod-path $pwd
32+
};
33+
34+
# Wait for the CSI Proxy to come up
35+
Start-Sleep -Seconds 30;
36+
37+
# Print all the named pipes to make sure that CSI-Proxy's named-pipes are created.
38+
Write-Output "Getting named pipes"
39+
[System.IO.Directory]::GetFiles("\\.\\pipe\\")
40+
41+
# Start the tests
2742
go test -v -race ./pkg/...

0 commit comments

Comments
 (0)