Skip to content

Commit

Permalink
Only publish coverage of one target framework
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken authored and linkdotnet committed Nov 1, 2024
1 parent 7d42739 commit 5f85431
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5f85431

Please sign in to comment.