mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-21 23:33:00 +00:00
Separate publishing of test results for PRs from forks
This commit is contained in:
parent
b8964f8bba
commit
02e051580c
2 changed files with 27 additions and 4 deletions
7
.github/actions/test/action.yml
vendored
7
.github/actions/test/action.yml
vendored
|
@ -79,10 +79,9 @@ 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: Publish Test Results
|
- name: Upload Test Results
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
uses: phoenix-actions/test-reporting@v12
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.RESULTS_NAME }}
|
name: results-${{ env.RESULTS_NAME }}
|
||||||
path: ${{ env.RESULTS_NAME }}/*.trx
|
path: ${{ env.RESULTS_NAME }}/*.trx
|
||||||
reporter: dotnet-trx
|
|
||||||
|
|
24
.github/workflows/publish-test-results.yml
vendored
Normal file
24
.github/workflows/publish-test-results.yml
vendored
Normal file
|
@ -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 a new issue