CI Pipeline Template
name: ci
on:
pull_request:
push:
branches: [ main ]
jobs:
build-test-analyse:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Restore
run: dotnet restore
- name: Format check
run: dotnet format --verify-no-changes
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-build --collect:"XPlat Code Coverage"
- name: Publish artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: |
**/TestResults/**Notes
Adapt runners for WPF and MAUI builds. MAUI iOS builds require macOS build infrastructure and signing configuration.
Was this helpful?

