Skip to content

Commit f1f9701

Browse files
We ran into dorny/test-reporter#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)
1 parent c7eb50e commit f1f9701

File tree

2 files changed

+11
-24
lines changed

2 files changed

+11
-24
lines changed

.github/workflows/build-ilspy.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,23 @@ jobs:
5858
Tests2: ILSpy.Tests\bin\${{ matrix.configuration }}\net6.0-windows\ILSpy.Tests.dll
5959
Tests3: ILSpy.BamlDecompiler.Tests\bin\${{ matrix.configuration }}\net6.0-windows\win-x64\ILSpy.BamlDecompiler.Tests.dll
6060

61-
- name: Upload Test Report
61+
- name: Upload Test Logs
6262
uses: actions/upload-artifact@v2
6363
if: success() || failure()
6464
with:
6565
name: test-results-${{ matrix.configuration }}
6666
path: '**/*.trx'
6767

68+
- name: Create Test Report
69+
uses: phoenix-actions/test-reporting@v6
70+
if: github.event_name != 'pull_request' && (success() || failure())
71+
with:
72+
name: Unit Test Results (${{ matrix.configuration }})
73+
path: '**/*.trx'
74+
reporter: dotnet-trx
75+
list-suites: 'all'
76+
list-tests: 'failed'
77+
6878
- name: Style - tab check
6979
run: python BuildTools\tidy.py
7080

.github/workflows/test-reports.yml

-23
This file was deleted.

0 commit comments

Comments
 (0)