suite4
All checks were successful
dotnet package / build (8.0.x) (push) Successful in 1m34s

This commit is contained in:
2024-08-26 21:55:27 +02:00
parent afac94fc71
commit c8f34c9fcd

View File

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