Skip to content

Update dotnet-desktop.yml #16

Update dotnet-desktop.yml

Update dotnet-desktop.yml #16

name: .NET Core Desktop
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
configuration: [Debug]
runs-on: windows-2019 # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: TeslaLogger.sln # Replace with your solution name, i.e. MyWpfApp.sln.
Test_Project_Path: UnitTestsTeslalogger\UnitTestsTeslalogger.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Setup Nuget
uses: Nuget/[email protected]
- name: Restore nuget packages
run: nuget restore TeslaLogger.sln
- name: Build solution
run: msbuild TeslaLogger.sln -t:rebuild -property:Configuration=Debug
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet vstest /Tests:UnitTestsGeocode /Logger:trx UnitTestsTeslalogger\bin\Debug\UnitTestsTeslalogger.dll
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
files: |
**/TestResults/*.trx