Skip to content

Commit 0974a36

Browse files
Move to --results-directory instead of --report-trx-filename
1 parent cc4f53b commit 0974a36

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/build-ilspy.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,20 @@ jobs:
6363
run: msbuild ILSpy.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform /m
6464

6565
- name: Execute unit tests
66-
run: dotnet test --solution ilspy.sln --configuration ${{ matrix.configuration }} --no-build --report-trx --report-trx-filename test-results.trx
66+
run: dotnet test --solution ilspy.sln --configuration ${{ matrix.configuration }} --no-build --report-trx --results-directory test-results/${{ matrix.configuration }}
6767

6868
- name: Upload Test Logs
6969
uses: actions/upload-artifact@v4
7070
if: success() || failure()
7171
with:
7272
name: test-results-${{ matrix.configuration }}
73-
path: |
74-
ICSharpCode.Decompiler.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx
75-
ILSpy.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx
76-
ILSpy.BamlDecompiler.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx
73+
path: 'test-results/${{ matrix.configuration }}/*.trx'
7774

7875
- name: Create Test Report
7976
uses: icsharpcode/test-summary-action@dist
8077
if: always()
8178
with:
82-
paths: |
83-
ICSharpCode.Decompiler.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx
84-
ILSpy.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx
85-
ILSpy.BamlDecompiler.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx
79+
paths: "test-results/${{ matrix.configuration }}/*.trx"
8680
folded: true
8781

8882
- name: Format check

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ ILSpy.Installer/wix/
2020
/VERSION
2121
/ICSharpCode.Decompiler/Properties/DecompilerVersionInfo.cs
2222
*/.vscode/
23-
DecompilerTests.config.json
23+
DecompilerTests.config.json
24+
*.trx

0 commit comments

Comments
 (0)