From e22e882536bcbd695e0d22959436d03d1563fd6a Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 20 Apr 2025 09:39:40 +0200 Subject: [PATCH 1/3] Add the GitHub token so its available for tests again. This broke tests for Github that is expecting this token to be available for runner tests --- .github/workflows/Test-ModuleLocal.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/Test-ModuleLocal.yml b/.github/workflows/Test-ModuleLocal.yml index 82037bf0..0fd223f7 100644 --- a/.github/workflows/Test-ModuleLocal.yml +++ b/.github/workflows/Test-ModuleLocal.yml @@ -114,6 +114,7 @@ jobs: TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }} TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }} TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }} + GITHUB_TOKEN: ${{ github.token }} with: Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} From 445091f2f561813728faa6eac908446f703bfa3a Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 20 Apr 2025 09:54:11 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A9=B9=20[Enhancement]:=20Add=20presc?= =?UTF-8?q?ript=20to=20speed=20up=20module=20loading=20in=20Pester=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Test-ModuleLocal.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/Test-ModuleLocal.yml b/.github/workflows/Test-ModuleLocal.yml index 0fd223f7..f1c05108 100644 --- a/.github/workflows/Test-ModuleLocal.yml +++ b/.github/workflows/Test-ModuleLocal.yml @@ -130,3 +130,5 @@ jobs: Path: ${{ inputs.TestPath }} Run_Path: ${{ steps.import-module.outputs.path }} WorkingDirectory: ${{ inputs.WorkingDirectory }} + Prescript: | # This is to speed up module loading in Pester. + Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion 999.0.0 From e5878b2f268c538f144fd9b1fcc9a6ead5892d15 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sun, 20 Apr 2025 09:54:40 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=A9=B9=20[Enhancement]:=20Add=20comme?= =?UTF-8?q?nt=20to=20clarify=20usage=20of=20GITHUB=5FTOKEN=20in=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Test-ModuleLocal.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Test-ModuleLocal.yml b/.github/workflows/Test-ModuleLocal.yml index f1c05108..9f16e948 100644 --- a/.github/workflows/Test-ModuleLocal.yml +++ b/.github/workflows/Test-ModuleLocal.yml @@ -114,7 +114,7 @@ jobs: TEST_USER_ORG_FG_PAT: ${{ secrets.TEST_USER_ORG_FG_PAT }} TEST_USER_USER_FG_PAT: ${{ secrets.TEST_USER_USER_FG_PAT }} TEST_USER_PAT: ${{ secrets.TEST_USER_PAT }} - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ github.token }} # Used in tests! with: Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }}