Skip to content

Fix #56

Fix #56 #17

Workflow file for this run

name: main_build
on:
pull_request:
branches: [ main ]
paths:
- 'source/**'
env:
SOLUTION_PATH: source/Diol/Diol.sln
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Restore NuGet packages
run: msbuild /t:restore ${{ env.SOLUTION_PATH }}
- name: Build
run: msbuild /p:Configuration=Release /p:Platform="Any CPU" ${{ env.SOLUTION_PATH }}
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Test
run: dotnet test --no-restore --verbosity normal --logger trx --results-directory TestResults ${{ env.SOLUTION_PATH }}
- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Test Results
path: TestResults/*.trx
reporter: dotnet-trx