diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 8cab83ae9..d36b8b97f 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -79,10 +79,9 @@ runs: shell: bash run: dotnet test ./_tests/Sonarr.*.Test.dll --filter "${{ inputs.filter }}" --logger trx --results-directory "${{ env.RESULTS_NAME }}" - - name: Publish Test Results + - name: Upload Test Results if: ${{ !cancelled() }} - uses: phoenix-actions/test-reporting@v12 + uses: actions/upload-artifact@v4 with: - name: ${{ env.RESULTS_NAME }} + name: results-${{ env.RESULTS_NAME }} path: ${{ env.RESULTS_NAME }}/*.trx - reporter: dotnet-trx diff --git a/.github/workflows/publish-test-results.yml b/.github/workflows/publish-test-results.yml new file mode 100644 index 000000000..843a13517 --- /dev/null +++ b/.github/workflows/publish-test-results.yml @@ -0,0 +1,24 @@ +name: Publish Test Results + +on: + workflow_run: + workflows: ['Build'] + types: + - completed + +permissions: + contents: read + actions: read + checks: write + +jobs: + report: + runs-on: ubuntu-latest + steps: + - name: Publish Test Results + uses: phoenix-actions/test-reporting@v12 + with: + artifact: /results-(.*)/ + name: '$1' + path: '*.trx' + reporter: dotnet-trx