Use publish-unit-test-result-action for test result reporting

This commit is contained in:
Mark McDowall 2024-01-12 15:14:13 -08:00 committed by Mark McDowall
parent 3259e6dc10
commit ad0249c7db
1 changed files with 8 additions and 4 deletions

View File

@ -79,9 +79,13 @@ runs:
shell: bash shell: bash
run: dotnet test ./_tests/Sonarr.*.Test.dll --filter "${{ inputs.filter }}" --logger trx --results-directory "${{ env.RESULTS_NAME }}" run: dotnet test ./_tests/Sonarr.*.Test.dll --filter "${{ inputs.filter }}" --logger trx --results-directory "${{ env.RESULTS_NAME }}"
- name: Upload Test Results - name: Publish Test Results
if: ${{ !cancelled() }} if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4 uses: EnricoMi/publish-unit-test-result-action/composite@v2
with: with:
name: results-${{ env.RESULTS_NAME }} check_run: false
path: ${{ env.RESULTS_NAME }}/*.trx check_run_annotations: none
comment_mode: off
comment_title: ${{ env.RESULTS_NAME }} Test Results
large_files: true
files: ${{ env.RESULTS_NAME }}/*.trx