Skip to content

Commit 9954702

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

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/windows.yml

+13-2
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:
@@ -22,7 +22,18 @@ jobs:
2222
uses: actions/checkout@v2
2323
- name: Build
2424
run: |
25-
go build -a -o _output/csi-proxy.exe ./cmd/csi-proxy
25+
go build -v -a -o ./bin/csi-proxy.exe ./cmd/csi-proxy
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+
.\bin\csi-proxy.exe --kubelet-csi-plugins-path $pwd --kubelet-pod-path $pwd
34+
};
35+
Start-Sleep -Seconds 30;
36+
Write-Output "getting named pipes"
37+
[System.IO.Directory]::GetFiles("\\.\\pipe\\")
38+
39+
go test -v -race ./integrationtest/volume_test.go ./integrationtests/filesystem_test.go ./integrationtests/disk_test.go

0 commit comments

Comments
 (0)