Skip to content

Commit

Permalink
Publish code coverage results
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken authored and linkdotnet committed Oct 31, 2024
1 parent 788605d commit c295f9d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@ 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
run: dotnet test -c Release --no-build -p:VSTestUseMSBuildOutput=false --collect:"XPlat Code Coverage;Format=lcov" --results-directory coverage

- name: Publish coverage report to coveralls.io
if: success() && matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}
file: coverage/**/coverage.info
format: lcov

0 comments on commit c295f9d

Please sign in to comment.