Skip to content

Commit

Permalink
merge coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
rivnakm committed Dec 29, 2024
1 parent 1191ddd commit 51b449a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"commands": [
"dotnet-ef"
]
},
"dotnet-coverage": {
"version": "17.13.1",
"commands": [
"dotnet-coverage"
]
}
}
}
}
5 changes: 5 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- name: Run tests
run: |
dotnet test --no-build --configuration Release --settings=all_tests.runsettings --collect:"XPlat Code Coverage" --logger "trx;LogFileName=TestResults.xml"
dotnet coverage merge ./**/TestResults/**/coverage.cobertura.xml -f cobertura -o ./coverage.cobertura.xml
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand All @@ -45,3 +46,7 @@ jobs:
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
format: cobertura
files: |
coverage.cobertura.xml

0 comments on commit 51b449a

Please sign in to comment.