Skip to content

Commit 06a363d

Browse files
🩹 [Patch]: Direct Pester artifacts to .PSModule
1 parent 7d0ca8c commit 06a363d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/actions/Test-PSModule/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ runs:
279279
run: ${{ github.action_path }}/src/main.ps1
280280

281281
- name: Invoke-Pester
282-
uses: PSModule/Invoke-Pester@4ff33199141fdf22568990b6107fe3148ae93a1c # v5.1.0
282+
uses: PSModule/Invoke-Pester@f5e3a9fe9a9cac1069d61c7bca0a99f6fceb5fb2 # PR 78
283283
id: test
284284
env:
285285
LocalTestPath: ${{ steps.paths.outputs.LocalTestPath }}
@@ -292,6 +292,7 @@ runs:
292292
GitHubVersion: ${{ inputs.Version }}
293293
GitHubPrerelease: ${{ inputs.Prerelease }}
294294
WorkingDirectory: ${{ inputs.WorkingDirectory }}
295+
OutputDirectory: ${{ inputs.WorkingDirectory }}/.PSModule
295296
Path: ${{ steps.paths.outputs.TestPath }}
296297
StepSummary_Mode: ${{ inputs.StepSummary_Mode }}
297298
StepSummary_ShowTestOverview: ${{ inputs.StepSummary_ShowTestOverview }}

.github/workflows/Test-ModuleLocal.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
"path=$path" >> $env:GITHUB_OUTPUT
7070
7171
- name: Test-ModuleLocal
72-
uses: PSModule/Invoke-Pester@4ff33199141fdf22568990b6107fe3148ae93a1c # v5.1.0
72+
uses: PSModule/Invoke-Pester@f5e3a9fe9a9cac1069d61c7bca0a99f6fceb5fb2 # PR 78
7373
with:
7474
Debug: ${{ fromJson(inputs.Settings).Debug }}
7575
Verbose: ${{ fromJson(inputs.Settings).Verbose }}
@@ -86,6 +86,7 @@ jobs:
8686
Path: ${{ matrix.TestPath }}
8787
Run_Path: ${{ steps.import-module.outputs.path }}
8888
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
89+
OutputDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}/.PSModule
8990
Prescript: | # This is to speed up module loading in Pester.
9091
Install-PSResource -Repository PSGallery -TrustRepository -Name PSCustomObject
9192
Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion '${{ fromJson(inputs.Settings).Publish.Module.Resolution.Version }}'

0 commit comments

Comments
 (0)