Skip to content

Commit 61184bd

Browse files
🩹 [CI]: Update Test-ModuleLocal workflow to output module name and enforce specific version
1 parent 77340c7 commit 61184bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ jobs:
101101
$name = Get-ChildItem "outputs/module" | Select-Object -ExpandProperty Name
102102
$path = Install-PSModule -Path "outputs/module/$name" -PassThru
103103
Write-Warning $path
104+
"name=$name" >> $env:GITHUB_OUTPUT
104105
"path=$path" >> $env:GITHUB_OUTPUT
105106
106107
- name: Test-ModuleLocal
@@ -131,4 +132,5 @@ jobs:
131132
Run_Path: ${{ steps.import-module.outputs.path }}
132133
WorkingDirectory: ${{ inputs.WorkingDirectory }}
133134
Prescript: |
134-
Import-Module -Name '${{ steps.import-module.outputs.path }}'
135+
Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion 999.0.0
136+
q

0 commit comments

Comments
 (0)