Skip to content

Commit

Permalink
fixup! Publish code coverage results
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltoken committed Oct 31, 2024
1 parent 8016096 commit db7e9c4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,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 --collect:"XPlat Code Coverage" --results-directory coverage
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: matrix.os == 'ubuntu-latest'
if: success() && matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ github.token }}
base-path: ${{ github.workspace }}/src/NCronJob
file: coverage/**/coverage.cobertura.xml
format: cobertura
file: coverage/**/coverage.info
format: lcov

0 comments on commit db7e9c4

Please sign in to comment.