This commit is contained in:
Leonid Pershin
2025-10-17 06:35:26 +03:00
parent b816eb5aaf
commit 2da83d8b84
2 changed files with 20 additions and 5 deletions

View File

@@ -30,20 +30,20 @@ jobs:
run: dotnet build --no-restore --verbosity normal
- name: Run unit tests
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./TestResults
run: dotnet test --no-build --verbosity normal --results-directory ./TestResults
- name: Generate test report
if: always()
run: |
echo "Test results:"
find ./TestResults -name "*.trx" -exec echo "Found test result file: {}" \;
find ./TestResults -name "*.xml" -exec echo "Found coverage file: {}" \;
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
path: ./TestResults/
retention-days: 30
if-no-files-found: warn