Skip to content

Commit

Permalink
go back to lcov
Browse files Browse the repository at this point in the history
  • Loading branch information
connorivy committed Jan 4, 2025
1 parent 347534b commit 0e5b24a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,19 @@ jobs:
dotnet tool install --global dotnet-coverage
export PATH="$PATH:/root/.dotnet/tools"
dotnet-coverage collect "dotnet run --project ./tests/MockMe.Tests.Runner/ -c Release --no-build" -f cobertura -s ./CodeCoverage.runsettings
- name: Generate report
uses: danielpalme/[email protected]
with:
reports: './output.cobertura.xml'
targetdir: './tests/TestResults'
reporttypes: 'lcov'

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
file: ./output.cobertura.xml
file: ./tests/TestResults/lcov.info

- name: Pack NuGet Packages
run: dotnet pack --configuration Release --output ./packages /p:Version=0.0.1-dev
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/publishWiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ jobs:
export PATH="$PATH:/root/.dotnet/tools"
dotnet-coverage collect "dotnet run --project ./tests/MockMe.Tests.Runner/ -c Release --no-build" -f cobertura -s ./CodeCoverage.runsettings
- name: Generate report
uses: danielpalme/[email protected]
with:
reports: './output.cobertura.xml'
targetdir: './tests/TestResults'
reporttypes: 'lcov'

- name: Coveralls
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.COVERALLS_REPO_TOKEN }}
file: ./output.cobertura.xml
file: ./tests/TestResults/lcov.info
2 changes: 1 addition & 1 deletion CodeCoverage.runsettings
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Exclude>
<ModulePath>.MockMe.Tests.ExampleClasses.dll$</ModulePath>
<ModulePath>.0Harmony.dll$</ModulePath>
<!--<ModulePath>.MockMe.Generator.dll$</ModulePath>-->
<ModulePath>.MockMe.Generator.dll$</ModulePath>
<!--<ModulePath>.*Tests.*</ModulePath>-->
</Exclude>
</ModulePaths>
Expand Down

0 comments on commit 0e5b24a

Please sign in to comment.