From 0569681bbe43bd0a4041b20b397911a4605b24b4 Mon Sep 17 00:00:00 2001 From: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com> Date: Fri, 18 Oct 2024 22:11:30 -0700 Subject: [PATCH] Added sorting by assembly type --- .github/workflows/check-coverage.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-coverage.ps1 b/.github/workflows/check-coverage.ps1 index e4f8853a4301..1e4a8b00a96c 100644 --- a/.github/workflows/check-coverage.ps1 +++ b/.github/workflows/check-coverage.ps1 @@ -66,7 +66,11 @@ foreach ($assembly in $jsonContent.coverage.assemblies) { } } -$assemblyTableData | Format-Table -AutoSize +$sortedTable = $assemblyTableData | Sort-Object { + $nonExperimentalAssemblies -contains $_.'Assembly Name' +} + +$sortedTable | Format-Table -AutoSize if ($coverageBelowThreshold) { Write-Host "Code coverage is lower than defined threshold: $CoverageThreshold. Stopping the task."