@@ -61,29 +61,21 @@ jobs:
6161
6262 - name : Run Unit Tests (.NET Framework)
6363 if : ${{ matrix.name == 'Windows' }}
64- run : dotnet test --logger trx -- no-restore --no-build --framework net472 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net472.binlog"
64+ run : dotnet test --no-restore --no-build --framework net472 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net472.binlog"
6565
6666 - name : Run Unit Tests (.NET 6)
6767 if : ${{ matrix.name != 'MacOS' }}
68- run : dotnet test --logger trx -- no-restore --no-build --framework net6.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net6.0.binlog"
68+ run : dotnet test --no-restore --no-build --framework net6.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net6.0.binlog"
6969
7070 - name : Run Unit Tests (.NET 8)
71- run : dotnet test --logger trx -- no-restore --no-build --framework net8.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog"
71+ run : dotnet test --no-restore --no-build --framework net8.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net8.0.binlog"
7272
7373 - name : Run Unit Tests (.NET 9)
74- run : dotnet test --logger trx --no-restore --no-build --framework net9.0 /noautorsp "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net9.0.binlog"
75-
76- - name : Upload Test Results
77- uses : actions/upload-artifact@v4
78- if : success() || failure()
79- with :
80- name : test-results-${{ matrix.name }}
81- path : ' **/TestResults/*.trx'
82- if-no-files-found : error
74+ run : dotnet test --no-restore --no-build --framework net9.0 "/Property:Platform=${{ env.BuildPlatform }};Configuration=${{ env.BuildConfiguration }}" "/BinaryLogger:${{ env.ArtifactsDirectoryName }}/test-net9.0.binlog"
8375
8476 - name : Upload Artifacts
8577 uses : actions/upload-artifact@v4
86- if : success() || failure()
78+ if : success()
8779 with :
8880 name : ${{ env.ArtifactsDirectoryName }}-${{ matrix.name }}
8981 path : ${{ env.ArtifactsDirectoryName }}
0 commit comments