Skip to content

Commit c67d57d

Browse files
🩹 [CI]: Update Test-ModuleLocal workflow to install PSModuleHelpers and streamline module installation
1 parent 22d8e97 commit c67d57d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎.github/workflows/Test-ModuleLocal.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,15 @@ jobs:
105105
name: module
106106
path: ${{ inputs.WorkingDirectory }}/outputs/module
107107

108-
- name: Debug
108+
- name: Install-PSModuleHelpers
109+
uses: PSModule/Install-PSModuleHelpers@v1
110+
111+
- name: Get-ModuleName
109112
shell: pwsh
110113
working-directory: ${{ inputs.WorkingDirectory }}
111114
run: |
112-
Get-ChildItem . -Recurse | Select-Object -ExpandProperty FullName | Sort-Object
115+
$name = Get-ChildItem "outputs/module" | Select-Object -ExpandProperty Name
116+
Install-PSModule -Path "outputs/module/$name"
113117
114118
- name: Test-ModuleLocal
115119
uses: PSModule/Invoke-Pester@v3

0 commit comments

Comments
 (0)