Skip to content

Commit

Permalink
Add integration tests on Git action
Browse files Browse the repository at this point in the history
Add integration tests
  • Loading branch information
jingxu97 committed Oct 7, 2020
1 parent 1988711 commit b441b2a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: Windows Integration Tests

on:
push:
Expand All @@ -22,7 +22,18 @@ jobs:
uses: actions/checkout@v2
- name: Build
run: |
go build -a -o _output/csi-proxy.exe ./cmd/csi-proxy
go build -v -a -o ./bin/csi-proxy.exe ./cmd/csi-proxy
- name: Run Windows Unit Tests
run: |
go test -v -race ./internal/...
- name: Run Windows Integration Tests
run: |
# start the CSI Proxy before running tests on windows
Start-Job -Name CSIProxy -ScriptBlock {
.\bin\csi-proxy.exe --kubelet-csi-plugins-path $pwd --kubelet-pod-path $pwd
};
Start-Sleep -Seconds 30;
Write-Output "getting named pipes"
[System.IO.Directory]::GetFiles("\\.\\pipe\\")
go test -v -race ./integrationtests/filesystem_test.go ./integrationtests/disk_test.go

0 comments on commit b441b2a

Please sign in to comment.