Skip to content

Commit b5660fa

Browse files
author
James Brundage
committed
fix: Fixing PublishTestResults build step
1 parent ae7c136 commit b5660fa

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/TestAndPublish.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
Install-Module -Name Pester -Repository PSGallery -Force -Scope CurrentUser -MaximumVersion $PesterMaxVersion -SkipPublisherCheck -AllowClobber
118118
Import-Module Pester -Force -PassThru -MaximumVersion $PesterMaxVersion} @Parameters
119119
- name: Check out repository
120-
uses: actions/checkout@v2
120+
uses: actions/checkout@v4
121121
- name: RunPester
122122
id: RunPester
123123
shell: pwsh
@@ -174,9 +174,6 @@ jobs:
174174
$result =
175175
Invoke-Pester -PassThru -Verbose -OutputFile ".\$moduleName.TestResults.xml" -OutputFormat NUnitXml @codeCoverageParameters
176176
177-
"::set-output name=TotalCount::$($result.TotalCount)",
178-
"::set-output name=PassedCount::$($result.PassedCount)",
179-
"::set-output name=FailedCount::$($result.FailedCount)" | Out-Host
180177
if ($result.FailedCount -gt 0) {
181178
"::debug:: $($result.FailedCount) tests failed"
182179
foreach ($r in $result.TestResult) {
@@ -188,7 +185,7 @@ jobs:
188185
}
189186
} @Parameters
190187
- name: PublishTestResults
191-
uses: actions/upload-artifact@v2
188+
uses: actions/upload-artifact@v3
192189
with:
193190
name: PesterResults
194191
path: '**.TestResults.xml'

0 commit comments

Comments
 (0)