diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 572e25e9..c0e4a93d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,10 +1,27 @@ name: Windows Tests on: [push, pull_request] jobs: + setup_powershell: + strategy: + matrix: + go: ['1.22'] + platform: [windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Run Windows Integration Tests + run: | + # required for running Volume and Disk tests + Install-WindowsFeature -name Hyper-V-PowerShell + # required for SMB test + # Get-PSRepository + # Set-PSRepository PSGallery -InstallationPolicy Trusted + Install-Module -Name SecMgmt -AllowClobber + $secured='random text'|ConvertTo-SecureString -AsPlainText -Force;$secured; + integration_tests: strategy: matrix: - go: ['1.20'] + go: ['1.22'] platform: [windows-latest] runs-on: ${{ matrix.platform }} steps: @@ -22,7 +39,9 @@ jobs: run: | # required for running Volume and Disk tests Install-WindowsFeature -name Hyper-V-PowerShell - + # required for SMB test + Install-Module -Name SecMgmt -AllowClobber + # start the CSI Proxy before running tests on windows Start-Job -Name CSIProxy -ScriptBlock { .\bin\csi-proxy.exe @@ -31,11 +50,12 @@ jobs: Write-Output "getting named pipes" [System.IO.Directory]::GetFiles("\\.\\pipe\\") $env:CSI_PROXY_GH_ACTIONS="TRUE" + go test -timeout 20m -v -race ./integrationtests/... unit_tests: strategy: matrix: - go: ['1.20'] + go: ['1.22'] platform: [windows-latest] runs-on: ${{ matrix.platform }} steps: @@ -53,7 +73,7 @@ jobs: bump_version_test: strategy: matrix: - go: ['1.20'] + go: ['1.22'] platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: