From 4bf9e053e907774c11cfe3387f90a71493e975fd Mon Sep 17 00:00:00 2001 From: Manohar Reddy Date: Sun, 27 Sep 2020 20:48:45 +0530 Subject: [PATCH] Start CSI Proxy before running windows unit tests --- .github/workflows/windows.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 38bcf81d663..efa6f6b6957 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -18,10 +18,25 @@ jobs: with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v2 - name: Build Test run: | make smb-windows - name: Run Windows Unit Tests run: | + # start the CSI Proxy before running tests on windows + Start-Job -Name CSIProx -ScriptBlock { + Invoke-WebRequest https://kubernetesartifacts.azureedge.net/csi-proxy/v0.2.1/binaries/csi-proxy.tar.gz -OutFile csi-proxy.tar.gz; + tar -xvf csi-proxy.tar.gz + .\bin\csi-proxy.exe --kubelet-csi-plugins-path $pwd --kubelet-pod-path $pwd + }; + + # Wait for the CSI Proxy to come up + Start-Sleep -Seconds 30; + + # Print all the named pipes to make sure that CSI-Proxy's named-pipes are created. + Write-Output "Getting named pipes" + [System.IO.Directory]::GetFiles("\\.\\pipe\\") + + # Start the tests go test -v -race ./pkg/...