Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lay foundations for re-enabling windows tests: Start CSI-Proxy as a background Job. #122

Merged
merged 1 commit into from
Sep 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/...