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 c8f34c9fcd - Show all commits

View File

@@ -86,9 +86,16 @@ jobs:
path: ${{ github.workspace }}/**/TestResults/**/*
retention-days: 5
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
**/TestResults/**/*.trx
- name: test
image: mcr.microsoft.com/dotnet/sdk:7.0
commands:
- dotnet test --logger:"trx;LogFileName=test_results.xml"
- report-tool publish test_results.xml
- 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"