From c7eb50ec4a356898224914eadc791088febe6703 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Thu, 10 Mar 2022 17:27:05 +0100 Subject: [PATCH] Split Test Report Workflow (#2650) --- .github/workflows/build-ilspy.yml | 9 +++------ .github/workflows/test-reports.yml | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/test-reports.yml diff --git a/.github/workflows/build-ilspy.yml b/.github/workflows/build-ilspy.yml index 5da85edc7..312142543 100644 --- a/.github/workflows/build-ilspy.yml +++ b/.github/workflows/build-ilspy.yml @@ -58,15 +58,12 @@ jobs: Tests2: ILSpy.Tests\bin\${{ matrix.configuration }}\net6.0-windows\ILSpy.Tests.dll Tests3: ILSpy.BamlDecompiler.Tests\bin\${{ matrix.configuration }}\net6.0-windows\win-x64\ILSpy.BamlDecompiler.Tests.dll - - name: Test Report - uses: phoenix-actions/test-reporting@v6 + - name: Upload Test Report + uses: actions/upload-artifact@v2 if: success() || failure() with: - name: Unit Test Results (${{ matrix.configuration }}) + name: test-results-${{ matrix.configuration }} path: '**/*.trx' - reporter: dotnet-trx - list-suites: 'all' - list-tests: 'failed' - name: Style - tab check run: python BuildTools\tidy.py diff --git a/.github/workflows/test-reports.yml b/.github/workflows/test-reports.yml new file mode 100644 index 000000000..2ec7ff1e4 --- /dev/null +++ b/.github/workflows/test-reports.yml @@ -0,0 +1,23 @@ +name: 'Test Report' +on: + workflow_run: + workflows: ['Build ILSpy'] + types: + - completed +jobs: + report: + runs-on: ubuntu-latest + strategy: + matrix: + Configuration: [ Debug, Release ] + + steps: + - name: Test Report + uses: phoenix-actions/test-reporting@v6 + with: + artifact: test-results-${{ matrix.configuration }} + name: Unit Test Results (${{ matrix.configuration }}) + path: '**/*.trx' + reporter: dotnet-trx + list-suites: 'all' + list-tests: 'failed' \ No newline at end of file