Files
AppKit/.gitea/workflows/build.yaml
T
James MaesandClaude Opus 5.5 7d951a618d
windows / windows (push) Successful in 58s
build / windows (push) Successful in 58s
ci: run the coverage gate as a separate pwsh process
Assert-Coverage.ps1 reports a shortfall with exit 1, which only stops the
build when the script runs as a native process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 07:35:34 -06:00

23 lines
1.1 KiB
YAML

name: build
on:
push:
branches: ['**']
tags: ['v*']
jobs:
windows:
uses: self:KofTwentyTwo/ci-workflows/.gitea/workflows/windows.yaml@native-workflows
secrets: inherit
with:
commands: |
dotnet restore AppKit.slnx -p:Platform=x64 --locked-mode
dotnet build AppKit.slnx -p:Platform=x64 -warnaserror --no-restore
# The WinUI sample is built directly so the format workspace can load its generated XAML code.
dotnet build samples/AppKit.Sample.WinUI/AppKit.Sample.WinUI.csproj -p:Platform=x64 -warnaserror --no-restore
$env:Platform = 'x64'
dotnet format AppKit.slnx --verify-no-changes --severity warn --no-restore
Remove-Item Env:Platform
dotnet test tests/KofTwentyTwo.AppKit.Tests --no-build --settings coverage.runsettings --collect:"XPlat Code Coverage" --logger trx --results-directory TestResults
pwsh -NoProfile -File ./build/Assert-Coverage.ps1 -ResultsDirectory TestResults -Packages KofTwentyTwo.AppKit,KofTwentyTwo.AppKit.Updates
dotnet pack AppKit.slnx -c Release -p:Platform=x64 -o artifacts/nuget
artifacts: artifacts/nuget/*.nupkg