Skip to content

Commit 7a5a176

Browse files
Fall back to 999.0.0 placeholder for module-local test import on non-PR runs (#373)
1 parent fad8822 commit 7a5a176

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/Test-ModuleLocal.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ jobs:
8282
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
8383
Prescript: | # This is to speed up module loading in Pester.
8484
Install-PSResource -Repository PSGallery -TrustRepository -Name PSCustomObject
85-
Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion '${{ fromJson(inputs.Settings).Module.Version }}'
85+
Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion '${{ fromJson(inputs.Settings).Module.Version != '' && fromJson(inputs.Settings).Module.Version || '999.0.0' }}'

0 commit comments

Comments
 (0)