1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-12 22:35:43 +00:00

fix(ci): convert coverage report to codecov supported format

This commit is contained in:
Oliver Booth 2024-02-17 16:12:00 +00:00
parent 39773a56c3
commit 6501162857
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5

View File

@ -33,8 +33,10 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Install dotCover
run: dotnet tool install --global JetBrains.dotCover.GlobalTool
- name: Install coverage tools
run: |
dotnet tool install --global JetBrains.dotCover.GlobalTool
dotnet tool install --global dotnet-reportgenerator-globaltool
- name: Build
run: dotnet build --no-restore --configuration Release
@ -50,9 +52,14 @@ jobs:
- name: Collect coverage
run: dotnet dotcover test --dcReportType=DetailedXML
- name: Convert coverage
run: reportgenerator -reports:./dotCover.Output.xml -targetdir:. -reporttypes:Cobertura
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.0
with:
disable_search: true
file: Cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
slug: oliverbooth/X10D