mirror of https://github.com/Sonarr/Sonarr
Separate publishing of test results for PRs from forks
This commit is contained in:
parent
b8964f8bba
commit
02e051580c
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue