File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 Prescript : | # This is to speed up module loading in Pester.
9292 Install-PSResource -Repository PSGallery -TrustRepository -Name PSCustomObject
9393 Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion '${{ fromJson(inputs.Settings).Publish.Module.Resolution.Version }}'
94-
95- - name : Verify Pester framework artifact paths
96- shell : pwsh
97- working-directory : ${{ fromJson(inputs.Settings).WorkingDirectory }}
98- run : |
99- $artifactPaths = @(
100- '.PSModule/TestResult/${{ matrix.TestName }}-${{ matrix.OSName }}-TestResult-Report.xml'
101- '.PSModule/CodeCoverage/${{ matrix.TestName }}-${{ matrix.OSName }}-CodeCoverage-Report.xml'
102- )
103-
104- foreach ($artifactPath in $artifactPaths) {
105- if (-not (Test-Path -Path $artifactPath -PathType Leaf)) {
106- throw "Expected Pester report at [$artifactPath]."
107- }
108- }
109-
110- $legacyPaths = @(
111- '.temp'
112- 'TestResult'
113- 'CodeCoverage'
114- )
115-
116- foreach ($legacyPath in $legacyPaths) {
117- if (Test-Path -Path $legacyPath) {
118- throw "Legacy Pester artifact directory exists: [$legacyPath]."
119- }
120- }
You can’t perform that action at this time.
0 commit comments