From 242d50d3dda3e635553ec0913ac1a7cbde4e10b0 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 14:50:57 +0200 Subject: [PATCH 1/6] Update required version of Fonts module to 1.1.19 --- src/functions/public/Install-NerdFont.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/public/Install-NerdFont.ps1 b/src/functions/public/Install-NerdFont.ps1 index 6015435..7b9ecd3 100644 --- a/src/functions/public/Install-NerdFont.ps1 +++ b/src/functions/public/Install-NerdFont.ps1 @@ -1,4 +1,4 @@ -#Requires -Modules @{ ModuleName = 'Fonts'; RequiredVersion = '1.1.18' } +#Requires -Modules @{ ModuleName = 'Fonts'; RequiredVersion = '1.1.19' } function Install-NerdFont { <# From 849b483cd405b67b2d56b3189213cbbe5cbc2615 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 15:30:47 +0200 Subject: [PATCH 2/6] Add test context for listing available modules in NerdFonts.Tests --- tests/NerdFonts.Tests.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/NerdFonts.Tests.ps1 b/tests/NerdFonts.Tests.ps1 index c32d4a7..fe79f7e 100644 --- a/tests/NerdFonts.Tests.ps1 +++ b/tests/NerdFonts.Tests.ps1 @@ -24,4 +24,7 @@ Get-Font -Name 'VictorMono*' | Should -Not -BeNullOrEmpty } } + Context 'Test' { + Write-Host "$(Get-Module -ListAvailable | Format-Table -AutoSize | Out-String)" + } } From a33cd58d4448201598c7e87baf714a12b286e657 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 15:44:01 +0200 Subject: [PATCH 3/6] Update workflow reference to use 'publishIssue' version for Process-PSModule --- .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 6178750..9526368 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -26,5 +26,5 @@ permissions: jobs: Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v4 + uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@publishIssue #v4 secrets: inherit From e065c3dc0372b690e0caeba9e34641917ebb8490 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 15:48:02 +0200 Subject: [PATCH 4/6] Fix typo in workflow reference for Process-PSModule --- .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 9526368..82fdcc5 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -26,5 +26,5 @@ permissions: jobs: Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@publishIssue #v4 + uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@pusblishIssue #v4 secrets: inherit From 8c412a8e935b136c358fe80c8caf80dfb7eeacee Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 18:09:01 +0200 Subject: [PATCH 5/6] Refactor tests in NerdFonts.Tests.ps1 to improve structure and clarity --- tests/NerdFonts.Tests.ps1 | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/tests/NerdFonts.Tests.ps1 b/tests/NerdFonts.Tests.ps1 index fe79f7e..741aa40 100644 --- a/tests/NerdFonts.Tests.ps1 +++ b/tests/NerdFonts.Tests.ps1 @@ -1,4 +1,25 @@ -Describe 'Module' { +#Requires -Modules @{ ModuleName = 'Pester'; RequiredVersion = '5.7.1' } + +[Diagnostics.CodeAnalysis.SuppressMessageAttribute( + 'PSUseDeclaredVarsMoreThanAssignments', '', + Justification = 'Pester grouping syntax: known issue.' +)] +[Diagnostics.CodeAnalysis.SuppressMessageAttribute( + 'PSAvoidUsingConvertToSecureStringWithPlainText', '', + Justification = 'Used to create a secure string for testing.' +)] +[Diagnostics.CodeAnalysis.SuppressMessageAttribute( + 'PSAvoidUsingWriteHost', '', + Justification = 'Log outputs to GitHub Actions logs.' +)] +[Diagnostics.CodeAnalysis.SuppressMessageAttribute( + 'PSAvoidLongLines', '', + Justification = 'Long test descriptions and skip switches' +)] +[CmdletBinding()] +param() + +Describe 'Module' { Context 'Function: Get-NerdFont' { It 'Returns all fonts' { $fonts = Get-NerdFont @@ -24,7 +45,4 @@ Get-Font -Name 'VictorMono*' | Should -Not -BeNullOrEmpty } } - Context 'Test' { - Write-Host "$(Get-Module -ListAvailable | Format-Table -AutoSize | Out-String)" - } } From b8542258166a7d71f383a49ab41d950fee77aa43 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 1 May 2025 18:12:27 +0200 Subject: [PATCH 6/6] Fix typo in workflow reference for Process-PSModule --- .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 82fdcc5..6178750 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -26,5 +26,5 @@ permissions: jobs: Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@pusblishIssue #v4 + uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v4 secrets: inherit