Ajout CI Coverage #9

Merged
mcmuzzle merged 39 commits from CIQuality into main 2024-08-29 17:43:05 +00:00
Showing only changes of commit 9f7333c8a4 - Show all commits

View File

@@ -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"