11name : Windows Tests 
22on : [push, pull_request] 
33jobs :
4+   setup_powershell :
5+     strategy :
6+       matrix :
7+         go : ['1.22'] 
8+         platform : [windows-latest] 
9+     runs-on : ${{ matrix.platform }} 
10+     steps :
11+       - name : Run Windows Integration Tests 
12+         run : | 
13+           # required for running Volume and Disk tests 
14+           Install-WindowsFeature -name Hyper-V-PowerShell 
15+           # required for SMB test 
16+           Get-PSRepository 
17+           Set-PSRepository PSGallery -InstallationPolicy Trusted 
18+           Install-Module -Name SecMgmt -AllowClobber 
19+           $secured='random text'|ConvertTo-SecureString -AsPlainText -Force;$secured; 
20+ 
421   integration_tests :
522    strategy :
623      matrix :
7-         go : ['1.20 '] 
24+         go : ['1.22 '] 
825        platform : [windows-latest] 
926    runs-on : ${{ matrix.platform }} 
1027    steps :
2239        run : | 
2340          # required for running Volume and Disk tests 
2441          Install-WindowsFeature -name Hyper-V-PowerShell 
25-            
42+           # required for SMB test 
43+           Get-PSRepository 
44+           Set-PSRepository PSGallery -InstallationPolicy Trusted 
45+           Install-Module Microsoft.PowerShell.Security 
46+           Import-Module Microsoft.PowerShell.Security 
47+ 
2648          # start the CSI Proxy before running tests on windows 
2749          Start-Job -Name CSIProxy -ScriptBlock { 
2850            .\bin\csi-proxy.exe 
@@ -31,11 +53,12 @@ jobs:
3153          Write-Output "getting named pipes" 
3254          [System.IO.Directory]::GetFiles("\\.\\pipe\\") 
3355          $env:CSI_PROXY_GH_ACTIONS="TRUE" 
56+ 
3457          go test -timeout 20m -v -race ./integrationtests/... 
3558   unit_tests :
3659    strategy :
3760      matrix :
38-         go : ['1.20 '] 
61+         go : ['1.22 '] 
3962        platform : [windows-latest] 
4063    runs-on : ${{ matrix.platform }} 
4164    steps :
5376   bump_version_test :
5477    strategy :
5578      matrix :
56-         go : ['1.20 '] 
79+         go : ['1.22 '] 
5780        platform : [ubuntu-latest] 
5881    runs-on : ${{ matrix.platform }} 
5982    steps :
0 commit comments