Browse Source

We ran into https://github.com/dorny/test-reporter/issues/67 too, so we'll have to ignore test report generation for pull requests (repo-local PRs are preceded by normal build events that will generate the report)

pull/2649/head
Christoph Wille 3 years ago
parent
commit
f1f970166c
  1. 12
      .github/workflows/build-ilspy.yml
  2. 23
      .github/workflows/test-reports.yml

12
.github/workflows/build-ilspy.yml

@ -58,13 +58,23 @@ jobs: @@ -58,13 +58,23 @@ 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: Upload Test Report
- name: Upload Test Logs
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: test-results-${{ matrix.configuration }}
path: '**/*.trx'
- name: Create Test Report
uses: phoenix-actions/test-reporting@v6
if: github.event_name != 'pull_request' && (success() || failure())
with:
name: Unit Test Results (${{ matrix.configuration }})
path: '**/*.trx'
reporter: dotnet-trx
list-suites: 'all'
list-tests: 'failed'
- name: Style - tab check
run: python BuildTools\tidy.py

23
.github/workflows/test-reports.yml

@ -1,23 +0,0 @@ @@ -1,23 +0,0 @@
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'
Loading…
Cancel
Save