Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -703,8 +703,8 @@ jobs:

while IFS= read -r line; do
if echo "$line" | grep -qE '^[^ ]+.*[0-9]+%$' && ! echo "$line" | grep -q '^Summary'; then
MODULE=$(echo "$line" | grep -oP '^[^ ]+')
PERCENT=$(echo "$line" | grep -oP '[0-9]+(?=%)' | tail -1)
MODULE=$(echo "$line" | awk '{print $1}')
PERCENT=$(echo "$line" | grep -oE '[0-9]+%' | tail -1 | tr -d '%')
echo "Checking module: '$MODULE' - Coverage: ${PERCENT}%"
if [ "$PERCENT" -lt "$THRESHOLD" ]; then
echo " ❌ FAIL: Below ${THRESHOLD}% threshold"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,22 @@
<PackageReference Include="System.Linq.AsyncEnumerable" Version="10.0.2" />
</ItemGroup>

<!-- coverlet.collector is required by dotnet test to generate coverage.cobertura.xml when
using XPlat Code Coverage collection. It must be referenced in the test project for
net5.0 and greater; .NET Framework and netcoreapp3.1 targets do not participate in
coverage collection. -->
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0' OR
'$(TargetFramework)' == 'net6.0' OR
'$(TargetFramework)' == 'net7.0' OR
'$(TargetFramework)' == 'net8.0' OR
'$(TargetFramework)' == 'net9.0' OR
'$(TargetFramework)' == 'net10.0'">
<PackageReference Include="coverlet.collector" Version="6.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Wolfgang.Etl.Abstractions\Wolfgang.Etl.Abstractions.csproj" />
</ItemGroup>
Expand Down
Loading