Skip to content

Commit ef24a19

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

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/windows.yml

Lines changed: 9 additions & 4 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,7 +22,11 @@ jobs:
2222
run: |
2323
# required for running Volume and Disk tests
2424
Install-WindowsFeature -name Hyper-V-PowerShell
25-
25+
# required for SMB test
26+
Set-PSRepository PSGallery -InstallationPolicy Trusted
27+
Install-Module Microsoft.PowerShell.Security
28+
Import-Module Microsoft.PowerShell.Security
29+
2630
# start the CSI Proxy before running tests on windows
2731
Start-Job -Name CSIProxy -ScriptBlock {
2832
.\bin\csi-proxy.exe
@@ -31,11 +35,12 @@ jobs:
3135
Write-Output "getting named pipes"
3236
[System.IO.Directory]::GetFiles("\\.\\pipe\\")
3337
$env:CSI_PROXY_GH_ACTIONS="TRUE"
38+
3439
go test -timeout 20m -v -race ./integrationtests/...
3540
unit_tests:
3641
strategy:
3742
matrix:
38-
go: ['1.20']
43+
go: ['1.22']
3944
platform: [windows-latest]
4045
runs-on: ${{ matrix.platform }}
4146
steps:
@@ -53,7 +58,7 @@ jobs:
5358
bump_version_test:
5459
strategy:
5560
matrix:
56-
go: ['1.20']
61+
go: ['1.22']
5762
platform: [ubuntu-latest]
5863
runs-on: ${{ matrix.platform }}
5964
steps:

0 commit comments

Comments
 (0)