From 5f85431654dd4c93b9d5ea73d0843b14b33b25e9 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Fri, 1 Nov 2024 11:18:12 +0100 Subject: [PATCH] Only publish coverage of one target framework --- .github/workflows/dotnet.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 712658a..d0e151b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -36,7 +36,11 @@ jobs: - name: Build run: dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true - name: Test - run: dotnet test -c Release --no-build -p:VSTestUseMSBuildOutput=false --collect:"XPlat Code Coverage;Format=lcov" --results-directory coverage + run: dotnet test -c Release --no-build -p:VSTestUseMSBuildOutput=false + + - name: Collect coverage + if: success() && matrix.os == 'ubuntu-latest' + run: dotnet test -c Release -f net8.0 --no-build --collect:"XPlat Code Coverage;Format=lcov" --results-directory coverage - name: Publish coverage report to coveralls.io if: success() && matrix.os == 'ubuntu-latest'