From 867c0521eeac936153c87200c0d27ca232501146 Mon Sep 17 00:00:00 2001 From: Jing Xu Date: Mon, 31 Aug 2020 10:49:15 -0700 Subject: [PATCH] Add integration tests on Git action Add integration tests --- .github/workflows/windows.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 28792fe8..c7af1c1a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,4 +1,4 @@ -name: Go +name: Windows Integration Tests on: push: @@ -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/volume_test.go ./integrationtests/filesystem_test.go ./integrationtests/disk_test.go