Skip to content

Commit c7a552c

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

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/windows.yml

Lines changed: 10 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,12 @@ 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+
Get-PSRepository
27+
Set-PSRepository PSGallery -InstallationPolicy Trusted
28+
Install-Module Microsoft.PowerShell.Security
29+
Import-Module Microsoft.PowerShell.Security
30+
2631
# start the CSI Proxy before running tests on windows
2732
Start-Job -Name CSIProxy -ScriptBlock {
2833
.\bin\csi-proxy.exe
@@ -31,11 +36,12 @@ jobs:
3136
Write-Output "getting named pipes"
3237
[System.IO.Directory]::GetFiles("\\.\\pipe\\")
3338
$env:CSI_PROXY_GH_ACTIONS="TRUE"
39+
3440
go test -timeout 20m -v -race ./integrationtests/...
3541
unit_tests:
3642
strategy:
3743
matrix:
38-
go: ['1.20']
44+
go: ['1.22']
3945
platform: [windows-latest]
4046
runs-on: ${{ matrix.platform }}
4147
steps:
@@ -53,7 +59,7 @@ jobs:
5359
bump_version_test:
5460
strategy:
5561
matrix:
56-
go: ['1.20']
62+
go: ['1.22']
5763
platform: [ubuntu-latest]
5864
runs-on: ${{ matrix.platform }}
5965
steps:

0 commit comments

Comments
 (0)