@@ -34,13 +34,33 @@ jobs:
3434 - name : Install test dependencies
3535 shell : pwsh
3636 run : |
37- Install-PSResource -Name Pester -Version '[5.7.1,6 .0.0)' -Repository PSGallery -TrustRepository
37+ Install-PSResource -Name Pester -Version '[6.1.0,7 .0.0)' -Repository PSGallery -TrustRepository
3838 Install-PSResource -Name PSSemVer -Repository PSGallery -TrustRepository
3939 Install-PSResource -Name GitHub -Version '[0.43.1,0.44.0)' -Repository PSGallery -TrustRepository
4040
4141 - name : Run action unit tests
4242 shell : pwsh
4343 run : |
44+ $configuration = New-PesterConfiguration
45+ $configuration.Run.Shuffle = $true
46+ $configuration.Run.ShuffleSeed = 42
47+ $configuration.Run.Parallel = $true
48+ $configuration.Run.ParallelThrottleLimit = 2
49+ $configuration.Debug.ShowStartMarkers = $true
50+
51+ $expectedOptions = @{
52+ 'Run.Shuffle' = $configuration.Run.Shuffle.Value
53+ 'Run.ShuffleSeed' = $configuration.Run.ShuffleSeed.Value -eq 42
54+ 'Run.Parallel' = $configuration.Run.Parallel.Value
55+ 'Run.ParallelThrottleLimit' = $configuration.Run.ParallelThrottleLimit.Value -eq 2
56+ 'Debug.ShowStartMarkers' = $configuration.Debug.ShowStartMarkers.Value
57+ }
58+ foreach ($option in $expectedOptions.GetEnumerator()) {
59+ if (-not $option.Value) {
60+ throw "Pester 6.1 configuration option [$($option.Key)] was not applied."
61+ }
62+ }
63+
4464 $testPaths = Get-ChildItem -Path '.github/actions' -Directory |
4565 ForEach-Object { Join-Path -Path $_.FullName -ChildPath 'tests' } |
4666 Where-Object { Test-Path -Path $_ }
0 commit comments