Skip to content

Commit d889690

Browse files
committed
Add integration tests on Git action
Add integration tests
1 parent 1988711 commit d889690

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/windows.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Go
1+
name: Windows Integration Tests
22

33
on:
44
push:
@@ -26,3 +26,16 @@ jobs:
2626
- name: Run Windows Unit Tests
2727
run: |
2828
go test -v -race ./internal/...
29+
- name: Run Windows Integration Tests
30+
run: |
31+
# start the CSI Proxy before running tests on windows
32+
Start-Job -Name CSIProxy -ScriptBlock {
33+
Invoke-WebRequest https://kubernetesartifacts.azureedge.net/csi-proxy/v0.2.1/binaries/csi-proxy.tar.gz -OutFile csi-proxy.tar.gz;
34+
tar -xvf csi-proxy.tar.gz
35+
.\bin\csi-proxy.exe --kubelet-csi-plugins-path $pwd --kubelet-pod-path $pwd
36+
};
37+
Start-Sleep -Seconds 30;
38+
Write-Output "getting named pipes"
39+
[System.IO.Directory]::GetFiles("\\.\\pipe\\")
40+
41+
go test -v -race ./integrationtests/...

0 commit comments

Comments
 (0)