Skip to content

Commit 7ca18a0

Browse files
committed
Import PS Security module 3.0 before running a PS function
1 parent 07be14d commit 7ca18a0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/windows.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
integration_tests:
55
strategy:
66
matrix:
7-
go: ['1.20']
7+
go: ['1.22']
88
platform: [windows-latest]
99
runs-on: ${{ matrix.platform }}
1010
steps:
@@ -22,6 +22,8 @@ jobs:
2222
run: |
2323
# required for running Volume and Disk tests
2424
Install-WindowsFeature -name Hyper-V-PowerShell
25+
# required for SMB test
26+
Import-Module Microsoft.PowerShell.Security -RequiredVersion 3.0.0.0
2527
2628
# start the CSI Proxy before running tests on windows
2729
Start-Job -Name CSIProxy -ScriptBlock {
@@ -31,11 +33,12 @@ jobs:
3133
Write-Output "getting named pipes"
3234
[System.IO.Directory]::GetFiles("\\.\\pipe\\")
3335
$env:CSI_PROXY_GH_ACTIONS="TRUE"
36+
3437
go test -timeout 20m -v -race ./integrationtests/...
3538
unit_tests:
3639
strategy:
3740
matrix:
38-
go: ['1.20']
41+
go: ['1.22']
3942
platform: [windows-latest]
4043
runs-on: ${{ matrix.platform }}
4144
steps:
@@ -53,7 +56,7 @@ jobs:
5356
bump_version_test:
5457
strategy:
5558
matrix:
56-
go: ['1.20']
59+
go: ['1.22']
5760
platform: [ubuntu-latest]
5861
runs-on: ${{ matrix.platform }}
5962
steps:

0 commit comments

Comments
 (0)