diff --git a/.github/workflows/Test-ModuleLocal.yml b/.github/workflows/Test-ModuleLocal.yml index 82037bf0..9f16e948 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 }} # Used in tests! with: Debug: ${{ inputs.Debug }} Prerelease: ${{ inputs.Prerelease }} @@ -129,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