Update build-pipeline.yml

This commit is contained in:
Felix Weiß
2023-06-13 22:35:38 +02:00
committed by GitHub
parent e96496cff8
commit 9fd178424f

View File

@@ -38,7 +38,15 @@ jobs:
- name: 'Run tests'
run: |
cd '${{ github.workspace }}/MewtocolTests'
dotnet test --logger:"console;verbosity=detailed"
dotnet test --logger "trx;logfilename=testresults.trx"
#Generate a test report
- name: 'Test Report'
uses: dorny/test-reporter@v1
if: success() || failure() # run this step even if previous step failed
with:
name: XUnit Tests # Name of the check run which will be created
path: TestResults/testresults.xml # Path to test results
reporter: dotnet-trx # Format of test results
#Run code ql check
code-ql-check:
@@ -90,4 +98,4 @@ jobs:
# NUGET_SOURCE: https://api.nuget.org
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
# INCLUDE_SYMBOLS: false
# INCLUDE_SYMBOLS: false