Skip to content

Commit e5919c9

Browse files
🩹 [CI]: Replace Write-Host with LogGroup for better test suite visibility in Get-TestSuites workflow
1 parent 7430ebd commit e5919c9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

‎.github/workflows/Get-TestSuites.yml‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ jobs:
121121
122122
$skipTests = $env:PSMODULE_GET_TESTSUITES_INPUT_SkipTests -Split ",|\s+" | ForEach-Object { $_.Trim() }
123123
124-
Write-Host "The following tests will be skipped:"
125-
$skipTests | ForEach-Object { " - $_ " }
124+
LogGroup 'Tests to be skipped:' {
125+
$skipTests | ForEach-Object { " - $_ " }
126+
}
126127
127128
$testSuites = foreach ($folder in $allTestFolders) {
128129
$testItems = Get-TestItemsFromFolder -FolderPath $folder
@@ -151,10 +152,12 @@ jobs:
151152
} | Select-Object -Property RunsOn, OSName -Unique
152153
153154
# Display the generated matrices for verification.
154-
Write-Host "Source Code Test Suites:"
155-
$sourceCodeTestSuites | Format-Table -AutoSize | Out-String
156-
Write-Host "Module Test Suites:"
157-
$testSuites | Format-Table -AutoSize | Out-String
155+
LogGroup 'Source Code Test Suites:' {
156+
$sourceCodeTestSuites | Format-Table -AutoSize | Out-String
157+
}
158+
LogGroup 'Module Test Suites:' {
159+
$testSuites | Format-Table -AutoSize | Out-String
160+
}
158161
159162
# Pass the final objects to GitHub Actions output.
160163
Set-GitHubOutput -Name SourceCodeTestSuites -Value $sourceCodeTestSuites

0 commit comments

Comments
 (0)