From 10264ca130df72ff8a367522705042b848cc9675 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 15 Aug 2026 17:19:44 +0200 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=9A=80=20[Feature]:=20Upgrade=20Proce?= =?UTF-8?q?ss-PSModule=20consumer=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/Process-PSModule.yml | 53 ++++++++++++++------------ tests/PSModuleTest.Tests.ps1 | 4 ++ 2 files changed, 33 insertions(+), 24 deletions(-) diff --git a/.github/workflows/Process-PSModule.yml b/.github/workflows/Process-PSModule.yml index aebc8ed..b886651 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -1,32 +1,37 @@ name: Process-PSModule on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - pull_request: - branches: - - main - types: - - closed - - opened - - reopened - - synchronize - - labeled + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + push: + branches: + - main + pull_request: + branches: + - main + types: + - closed + - opened + - reopened + - synchronize + - labeled + - unlabeled concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} -permissions: - contents: write - pull-requests: write - statuses: write - pages: write - id-token: write +permissions: {} jobs: - Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@fb1bdb8fefd243292f779d2a856a38db6fe6daf4 # v6.1.13 - secrets: - APIKey: ${{ secrets.APIKEY }} + Process-PSModule: + permissions: + contents: read + pages: write + id-token: write + uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v8 + secrets: + PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }} + GitHubAppClientId: ${{ secrets.SHELLY_CLIENT_ID }} + GitHubAppPrivateKey: ${{ secrets.SHELLY_PRIVATE_KEY }} diff --git a/tests/PSModuleTest.Tests.ps1 b/tests/PSModuleTest.Tests.ps1 index ff69bb3..299825d 100644 --- a/tests/PSModuleTest.Tests.ps1 +++ b/tests/PSModuleTest.Tests.ps1 @@ -11,6 +11,10 @@ [CmdletBinding()] param() +BeforeAll { + . "$PSScriptRoot\..\src\functions\public\Get-PSModuleTest.ps1" +} + Describe 'Module' { It 'Function: Get-PSModuleTest' { Get-PSModuleTest -Name 'World' | Should -Be 'Hello, World!' From 849de16e40bbda7459041e84361eb0e992697a65 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 15 Aug 2026 17:29:55 +0200 Subject: [PATCH 2/5] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Use=20Pester=20v6?= =?UTF-8?q?=20assertion=20syntax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- tests/PSModuleTest.Tests.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/PSModuleTest.Tests.ps1 b/tests/PSModuleTest.Tests.ps1 index 299825d..99bef2e 100644 --- a/tests/PSModuleTest.Tests.ps1 +++ b/tests/PSModuleTest.Tests.ps1 @@ -11,12 +11,8 @@ [CmdletBinding()] param() -BeforeAll { - . "$PSScriptRoot\..\src\functions\public\Get-PSModuleTest.ps1" -} - Describe 'Module' { It 'Function: Get-PSModuleTest' { - Get-PSModuleTest -Name 'World' | Should -Be 'Hello, World!' + Get-PSModuleTest -Name 'World' | Should-Be 'Hello, World!' } } From 68c72b6474bc7c4c9b127a19110b9d4f70d71e7f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 15 Aug 2026 17:30:13 +0200 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Fix=20workflow=20?= =?UTF-8?q?YAML=20indentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/Process-PSModule.yml | 56 +++++++++++++------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/Process-PSModule.yml b/.github/workflows/Process-PSModule.yml index b886651..f0ca651 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -1,37 +1,37 @@ name: Process-PSModule on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - push: - branches: - - main - pull_request: - branches: - - main - types: - - closed - - opened - - reopened - - synchronize - - labeled - - unlabeled + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + push: + branches: + - main + pull_request: + branches: + - main + types: + - closed + - opened + - reopened + - synchronize + - labeled + - unlabeled concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: ${{ github.event_name == 'pull_request' }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: {} jobs: - Process-PSModule: - permissions: - contents: read - pages: write - id-token: write - uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v8 - secrets: - PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }} - GitHubAppClientId: ${{ secrets.SHELLY_CLIENT_ID }} - GitHubAppPrivateKey: ${{ secrets.SHELLY_PRIVATE_KEY }} + Process-PSModule: + permissions: + contents: read + pages: write + id-token: write + uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v8 + secrets: + PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }} + GitHubAppClientId: ${{ secrets.SHELLY_CLIENT_ID }} + GitHubAppPrivateKey: ${{ secrets.SHELLY_PRIVATE_KEY }} From acde9fc48d83f68f6d7e235b0b78e4fa8024043d Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 15 Aug 2026 18:16:16 +0200 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Preserve=20compat?= =?UTF-8?q?ible=20Pester=20assertion=20syntax?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- tests/PSModuleTest.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PSModuleTest.Tests.ps1 b/tests/PSModuleTest.Tests.ps1 index 99bef2e..ff69bb3 100644 --- a/tests/PSModuleTest.Tests.ps1 +++ b/tests/PSModuleTest.Tests.ps1 @@ -13,6 +13,6 @@ param() Describe 'Module' { It 'Function: Get-PSModuleTest' { - Get-PSModuleTest -Name 'World' | Should-Be 'Hello, World!' + Get-PSModuleTest -Name 'World' | Should -Be 'Hello, World!' } } From 18c9e586af1b16e9bc4ca719e4e9d94d857d8c75 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 15 Aug 2026 18:16:46 +0200 Subject: [PATCH 5/5] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Use=20native=20Pe?= =?UTF-8?q?ster=20v6=20assertion=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- tests/PSModuleTest.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PSModuleTest.Tests.ps1 b/tests/PSModuleTest.Tests.ps1 index ff69bb3..99bef2e 100644 --- a/tests/PSModuleTest.Tests.ps1 +++ b/tests/PSModuleTest.Tests.ps1 @@ -13,6 +13,6 @@ param() Describe 'Module' { It 'Function: Get-PSModuleTest' { - Get-PSModuleTest -Name 'World' | Should -Be 'Hello, World!' + Get-PSModuleTest -Name 'World' | Should-Be 'Hello, World!' } }