Skip to content

Commit 445091f

Browse files
🩹 [Enhancement]: Add prescript to speed up module loading in Pester tests
1 parent e22e882 commit 445091f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎.github/workflows/Test-ModuleLocal.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,5 @@ jobs:
130130
Path: ${{ inputs.TestPath }}
131131
Run_Path: ${{ steps.import-module.outputs.path }}
132132
WorkingDirectory: ${{ inputs.WorkingDirectory }}
133+
Prescript: | # This is to speed up module loading in Pester.
134+
Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion 999.0.0

0 commit comments

Comments
 (0)