Merge pull request #1368 from Mario4git/geofence.csv_2024-10-05 #555
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: .NET Core Desktop | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master","TeslaFleetAPI"] | |
pull_request: | |
branches: [ "master", "TeslaFleetAPI"] | |
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/setup-msbuild@v2 | |
- 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 test --filter "UnitTestsGeocode|UnitTestGrafana|UnitTestBase" --logger trx --logger console UnitTestsTeslalogger\bin\Debug\UnitTestsTeslalogger.dll | |
#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 | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Teslalogger | |
path: TeslaLogger\bin\Debug\TeslaLogger.exe | |