Skip to content

Commit 0de5aa6

Browse files
🩹 [Patch]: Add installation of PSCustomObject on Test-ModuleLocal (#166)
## Description This pull request updates the `.github/workflows/Test-ModuleLocal.yml` file to optimize module loading during Pester tests by installing a required PowerShell resource. Workflow optimization: * [`.github/workflows/Test-ModuleLocal.yml`](diffhunk://#diff-bc9fc4fcc46bb3f5c486f48b3708cb239d73c94b983b4e72815d093825c94581R134): Added a step to install the `PSCustomObject` module from the `PSGallery` repository to streamline module loading in Pester. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas
1 parent d0f553d commit 0de5aa6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/Test-ModuleLocal.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,5 @@ jobs:
131131
Run_Path: ${{ steps.import-module.outputs.path }}
132132
WorkingDirectory: ${{ inputs.WorkingDirectory }}
133133
Prescript: | # This is to speed up module loading in Pester.
134+
Install-PSResource -Repository PSGallery -TrustRepository -Name PSCustomObject
134135
Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion 999.0.0

0 commit comments

Comments
 (0)