Ajout CI Coverage #9
@@ -33,7 +33,8 @@ jobs:
|
||||
dotnet-version: |
|
||||
8.x
|
||||
- name: "Restore/Build/Test"
|
||||
run: dotnet test ./src/LittleTown.sln --configuration Release --verbosity normal --logger trx --collect:"XPlat Code Coverage" --logger:"trx;LogFileName=test_results.xml"
|
||||
run: |
|
||||
dotnet test ./src/LittleTown.sln --configuration Release --verbosity normal --logger trx --collect:"XPlat Code Coverage" --logger:"trx;LogFileName=test_results.xml"
|
||||
- name: Combine Coverage Reports # This is because one report is produced per project, and we want one result for all of them.
|
||||
uses: danielpalme/ReportGenerator-GitHub-Action@5.3.8
|
||||
with:
|
||||
@@ -85,11 +86,3 @@ jobs:
|
||||
name: test-results
|
||||
path: ${{ github.workspace }}/**/TestResults/**/*
|
||||
retention-days: 5
|
||||
|
||||
- name: publish-comment
|
||||
image: curlimages/curl
|
||||
environment:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
commands:
|
||||
- COMMENT="Test Results: $(cat test_results.xml)"
|
||||
- curl -X POST -H "Authorization: token ${GITEA_TOKEN}" -d "{ \"body\": \"$COMMENT\" }" "${DRONE_BUILD_LINK}/comments"
|
||||
|
||||
Reference in New Issue
Block a user