From 8f88168ef8c7aa31ce72e537d7ac5662e79dddc5 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 17:41:02 +0200 Subject: [PATCH 1/3] Require Pester 6.x in test files --- tests/Casing.Tests.ps1 | 4 +++- tests/UseCases.Tests.ps1 | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Casing.Tests.ps1 b/tests/Casing.Tests.ps1 index 29c6498..1975b14 100644 --- a/tests/Casing.Tests.ps1 +++ b/tests/Casing.Tests.ps1 @@ -1,4 +1,6 @@ -Describe 'CasingStyle' { +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } + +Describe 'CasingStyle' { Context 'Function: Get-CasingStyle' { It "Get-CasingStyle: Detects 'testtesttest' as lowercase" { 'testtesttest' | Get-CasingStyle | Should -Be 'lowercase' diff --git a/tests/UseCases.Tests.ps1 b/tests/UseCases.Tests.ps1 index 3567f28..e5c9974 100644 --- a/tests/UseCases.Tests.ps1 +++ b/tests/UseCases.Tests.ps1 @@ -1,4 +1,6 @@ -#-------------------------------------------------------------------- +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } + +#-------------------------------------------------------------------- # Test Get-CasingStyle: verify that known inputs are detected correctly, # and that ambiguous strings return 'Unknown' #-------------------------------------------------------------------- From ca255e076068d249def9975e7b6c556627624de5 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 7 Jul 2026 21:10:54 +0200 Subject: [PATCH 2/3] Drop the GUID from the Pester requirement The GUID pins module identity (precise pinning), a stricter control than the lock-to-major risk appetite. Keep only the version range. --- tests/Casing.Tests.ps1 | 2 +- tests/UseCases.Tests.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Casing.Tests.ps1 b/tests/Casing.Tests.ps1 index 1975b14..46e90df 100644 --- a/tests/Casing.Tests.ps1 +++ b/tests/Casing.Tests.ps1 @@ -1,4 +1,4 @@ -#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*' } Describe 'CasingStyle' { Context 'Function: Get-CasingStyle' { diff --git a/tests/UseCases.Tests.ps1 b/tests/UseCases.Tests.ps1 index e5c9974..0d47fff 100644 --- a/tests/UseCases.Tests.ps1 +++ b/tests/UseCases.Tests.ps1 @@ -1,4 +1,4 @@ -#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*'; GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71' } +#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*' } #-------------------------------------------------------------------- # Test Get-CasingStyle: verify that known inputs are detected correctly, From 5a783b68e088fbf7a2ca242fa19bd57c7f5a7d7d Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 12 Jul 2026 11:53:42 +0200 Subject: [PATCH 3/3] Adopt Process-PSModule v6.1.4 --- .github/workflows/Process-PSModule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Process-PSModule.yml b/.github/workflows/Process-PSModule.yml index 9462763..a8e37ad 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -27,5 +27,5 @@ permissions: jobs: Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@205d193f34cbbaf9992955c21d842bcf98a1859f # v5.4.6 + uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@da180bac16b13bfbcdf08b2e4e221b5b49e5ff28 # v6.1.4 secrets: inherit