Update README.md #37
This file contains hidden or 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: MAUI Build and Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| build-and-test: | |
| runs-on: windows-latest # Or macos-latest for iOS/Mac Catalyst builds | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Install MAUI Workloads | |
| run: dotnet workload install maui | |
| - name: Restore NuGet packages | |
| run: dotnet restore LunaDraw.csproj | |
| - name: Build MAUI App (Windows) | |
| run: dotnet build LunaDraw.csproj -c Release -f net10.0-windows10.0.19041.0 | |
| - name: Run Unit Tests | |
| run: dotnet test tests/LunaDraw.Tests/LunaDraw.Tests.csproj |