Skip to content

Add GitHub Actions workflow for .NET build check #1

Add GitHub Actions workflow for .NET build check

Add GitHub Actions workflow for .NET build check #1

name: Build Check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest # Kept Windows for desktop framework compatibility
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore Dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Execute Unit Tests
run: dotnet test --configuration Release --no-build --verbosity normal