From 553595928e0890a6b5333de578bef00c490ce04e Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 10 Jul 2026 21:01:01 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Refactor=20TestDa?= =?UTF-8?q?ta=20JSON=20formatting=20in=20Process-PSModule.yml=20for=20impr?= =?UTF-8?q?oved=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Process-PSModule.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/Process-PSModule.yml b/.github/workflows/Process-PSModule.yml index a70f92d..38322f3 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -30,14 +30,12 @@ jobs: uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@ea19a3eb1293246d1b00e4faae1544442c3be0ec # v6.1.1 secrets: APIKEY: ${{ secrets.APIKEY }} - # Showcase: send data down to the module tests (see tests/Environment.Tests.ps1). - # TestData is a single-line JSON object with optional "secrets" (masked in logs) and - # "variables" (not masked) maps. Every entry is exposed to the module test jobs as - # $env:. Reference a repository secret with the direct "${{ secrets.NAME }}" - # form (single-line values, no quotes or backslashes) and a repository variable with - # ${{ toJSON(vars.NAME) }} so any characters are encoded safely. The folded ">-" scalar - # keeps the whole value on one line so GitHub registers a single log mask. Omit - # TestData entirely when your tests need no data. TestData: >- - { "secrets": { "TEST_SECRET": "${{ secrets.TEST_SECRET }}" }, - "variables": { "TEST_VARIABLE": ${{ toJSON(vars.TEST_VARIABLE) }} } } + { + "secrets": { + "TEST_SECRET": "${{ secrets.TEST_SECRET }}" + }, + "variables": { + "TEST_VARIABLE": "${{ vars.TEST_VARIABLE }}" + } + } From 6b5959d3259f0412507f6158f513694b6a7dc32e Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 10 Jul 2026 21:11:36 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20initial=20d?= =?UTF-8?q?ocumentation=20for=20SomethingElse=20function=20in=20index.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions/public/SomethingElse/{SomethingElse.md => index.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/functions/public/SomethingElse/{SomethingElse.md => index.md} (100%) diff --git a/src/functions/public/SomethingElse/SomethingElse.md b/src/functions/public/SomethingElse/index.md similarity index 100% rename from src/functions/public/SomethingElse/SomethingElse.md rename to src/functions/public/SomethingElse/index.md From 929b8975c2363559272e7ed1a7fa629cad33a9ef Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 11 Jul 2026 17:25:19 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Remove=20unused?= =?UTF-8?q?=20test=20functions=20and=20corresponding=20documentation=20for?= =?UTF-8?q?=20Index=20and=20Named=20sections?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IndexSection/Get-IndexSectionTest.ps1 | 21 ------------------- src/functions/public/IndexSection/index.md | 5 ----- .../NamedSection/Get-NamedSectionTest.ps1 | 21 ------------------- .../public/NamedSection/NamedSection.md | 5 ----- tests/PSModuleTest.Tests.ps1 | 6 ------ 5 files changed, 58 deletions(-) delete mode 100644 src/functions/public/IndexSection/Get-IndexSectionTest.ps1 delete mode 100644 src/functions/public/IndexSection/index.md delete mode 100644 src/functions/public/NamedSection/Get-NamedSectionTest.ps1 delete mode 100644 src/functions/public/NamedSection/NamedSection.md diff --git a/src/functions/public/IndexSection/Get-IndexSectionTest.ps1 b/src/functions/public/IndexSection/Get-IndexSectionTest.ps1 deleted file mode 100644 index 9c36ed5..0000000 --- a/src/functions/public/IndexSection/Get-IndexSectionTest.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -function Get-IndexSectionTest { - <# - .SYNOPSIS - Performs tests on a module. - - .DESCRIPTION - Performs tests on a module. - - .EXAMPLE - Get-IndexSectionTest -Name 'World' - - "Hello, World!" - #> - [CmdletBinding()] - param ( - # Name of the person to greet. - [Parameter(Mandatory)] - [string] $Name - ) - Write-Output "Hello, $Name!" -} diff --git a/src/functions/public/IndexSection/index.md b/src/functions/public/IndexSection/index.md deleted file mode 100644 index 7b29823..0000000 --- a/src/functions/public/IndexSection/index.md +++ /dev/null @@ -1,5 +0,0 @@ -# Index Section - -This section's landing page is provided by an `index.md` file. - -When Process-PSModule builds the documentation site, this page becomes the landing page for the **Index Section** group in the navigation on GitHub Pages. diff --git a/src/functions/public/NamedSection/Get-NamedSectionTest.ps1 b/src/functions/public/NamedSection/Get-NamedSectionTest.ps1 deleted file mode 100644 index 4ec9f6e..0000000 --- a/src/functions/public/NamedSection/Get-NamedSectionTest.ps1 +++ /dev/null @@ -1,21 +0,0 @@ -function Get-NamedSectionTest { - <# - .SYNOPSIS - Performs tests on a module. - - .DESCRIPTION - Performs tests on a module. - - .EXAMPLE - Get-NamedSectionTest -Name 'World' - - "Hello, World!" - #> - [CmdletBinding()] - param ( - # Name of the person to greet. - [Parameter(Mandatory)] - [string] $Name - ) - Write-Output "Hello, $Name!" -} diff --git a/src/functions/public/NamedSection/NamedSection.md b/src/functions/public/NamedSection/NamedSection.md deleted file mode 100644 index 6adff38..0000000 --- a/src/functions/public/NamedSection/NamedSection.md +++ /dev/null @@ -1,5 +0,0 @@ -# Named Section - -This section's landing page is provided by a file named after its folder (`NamedSection.md`). - -When Process-PSModule builds the documentation site, this page becomes the landing page for the **Named Section** group in the navigation on GitHub Pages. diff --git a/tests/PSModuleTest.Tests.ps1 b/tests/PSModuleTest.Tests.ps1 index 7b06f67..b856855 100644 --- a/tests/PSModuleTest.Tests.ps1 +++ b/tests/PSModuleTest.Tests.ps1 @@ -22,10 +22,4 @@ Describe 'Module' { It 'Function: Test-PSModuleTest' { Test-PSModuleTest -Name 'World' | Should -Be 'Hello, World!' } - It 'Function: Get-IndexSectionTest' { - Get-IndexSectionTest -Name 'World' | Should -Be 'Hello, World!' - } - It 'Function: Get-NamedSectionTest' { - Get-NamedSectionTest -Name 'World' | Should -Be 'Hello, World!' - } }