From 0974a3659098b745e0089c51d6b6ac54b1af5013 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Mon, 7 Jul 2025 11:25:40 +0200 Subject: [PATCH] Move to --results-directory instead of --report-trx-filename --- .github/workflows/build-ilspy.yml | 12 +++--------- .gitignore | 3 ++- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-ilspy.yml b/.github/workflows/build-ilspy.yml index a9bd095f2..03bc37cc4 100644 --- a/.github/workflows/build-ilspy.yml +++ b/.github/workflows/build-ilspy.yml @@ -63,26 +63,20 @@ jobs: run: msbuild ILSpy.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform /m - name: Execute unit tests - run: dotnet test --solution ilspy.sln --configuration ${{ matrix.configuration }} --no-build --report-trx --report-trx-filename test-results.trx + run: dotnet test --solution ilspy.sln --configuration ${{ matrix.configuration }} --no-build --report-trx --results-directory test-results/${{ matrix.configuration }} - name: Upload Test Logs uses: actions/upload-artifact@v4 if: success() || failure() with: name: test-results-${{ matrix.configuration }} - path: | - ICSharpCode.Decompiler.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx - ILSpy.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx - ILSpy.BamlDecompiler.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx + path: 'test-results/${{ matrix.configuration }}/*.trx' - name: Create Test Report uses: icsharpcode/test-summary-action@dist if: always() with: - paths: | - ICSharpCode.Decompiler.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx - ILSpy.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx - ILSpy.BamlDecompiler.Tests/bin/${{ matrix.configuration }}/net10.0-windows/win-x64/TestResults/*.trx + paths: "test-results/${{ matrix.configuration }}/*.trx" folded: true - name: Format check diff --git a/.gitignore b/.gitignore index e871f125d..841c2dcc8 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,5 @@ ILSpy.Installer/wix/ /VERSION /ICSharpCode.Decompiler/Properties/DecompilerVersionInfo.cs */.vscode/ -DecompilerTests.config.json \ No newline at end of file +DecompilerTests.config.json +*.trx \ No newline at end of file