Browse Source

Move to --results-directory instead of --report-trx-filename

pull/3507/head
Christoph Wille 2 weeks ago
parent
commit
0974a36590
  1. 12
      .github/workflows/build-ilspy.yml
  2. 1
      .gitignore

12
.github/workflows/build-ilspy.yml

@ -63,26 +63,20 @@ jobs:
run: msbuild ILSpy.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform /m run: msbuild ILSpy.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform /m
- name: Execute unit tests - 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 - name: Upload Test Logs
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: success() || failure() if: success() || failure()
with: with:
name: test-results-${{ matrix.configuration }} name: test-results-${{ matrix.configuration }}
path: | path: 'test-results/${{ matrix.configuration }}/*.trx'
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
- name: Create Test Report - name: Create Test Report
uses: icsharpcode/test-summary-action@dist uses: icsharpcode/test-summary-action@dist
if: always() if: always()
with: with:
paths: | paths: "test-results/${{ matrix.configuration }}/*.trx"
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
folded: true folded: true
- name: Format check - name: Format check

1
.gitignore vendored

@ -21,3 +21,4 @@ ILSpy.Installer/wix/
/ICSharpCode.Decompiler/Properties/DecompilerVersionInfo.cs /ICSharpCode.Decompiler/Properties/DecompilerVersionInfo.cs
*/.vscode/ */.vscode/
DecompilerTests.config.json DecompilerTests.config.json
*.trx
Loading…
Cancel
Save