Skip to content

Commit

Permalink
added tests reports
Browse files Browse the repository at this point in the history
  • Loading branch information
SvetlovA committed Nov 23, 2023
1 parent 542578e commit 8fa3745
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/build_and_test_job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,22 @@ jobs:
run: dotnet build --configuration Release --no-restore src
- name: TestAllPlatforms
if: ${{ inputs.os == 'windows-latest' }}
run: dotnet test --no-build --configuration Release --verbosity normal
run: dotnet test --no-build --configuration Release --verbosity minimal --logger "trx;LogFileName=/TestResults/testResults.trx"
working-directory: ./src
- name: TestLinix
if: ${{ inputs.os == 'ubuntu-latest' || inputs.os == 'macos-latest' }}
run: |
dotnet test --framework netcoreapp3.1 --no-build --configuration Release --verbosity normal
dotnet test --framework net5.0 --no-build --configuration Release --verbosity normal
dotnet test --framework net6.0 --no-build --configuration Release --verbosity normal
dotnet test --framework net7.0 --no-build --configuration Release --verbosity normal
dotnet test --framework net8.0 --no-build --configuration Release --verbosity normal
dotnet test --framework netcoreapp3.1 --no-build --configuration Release --verbosity minimal --logger "trx;LogFileName=/TestResults/netcoreapp3.1/testResults.trx"
dotnet test --framework net5.0 --no-build --configuration Release --verbosity minimal --logger "trx;LogFileName=/TestResults/net5.0/testResults.trx"
dotnet test --framework net6.0 --no-build --configuration Release --verbosity minimal --logger "trx;LogFileName=/TestResults/net6.0/testResults.trx"
dotnet test --framework net7.0 --no-build --configuration Release --verbosity minimal --logger "trx;LogFileName=/TestResults/net7.0/testResults.trx"
dotnet test --framework net8.0 --no-build --configuration Release --verbosity minimal --logger "trx;LogFileName=/TestResults/net8.0/testResults.trx"
working-directory: ./src
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: Tests
path: /TestResults/**/*.trx
reporter: dotnet-trx
working-directory: ./src

0 comments on commit 8fa3745

Please sign in to comment.