Squashed commit of the following: #49
Workflow file for this run
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: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/*.csproj') }} | |
| restore-keys: | | |
| ${{ runner.os }}-nuget- | |
| - name: Remove Local Source for CI | |
| run: dotnet nuget remove source LocalNuGetPackages --configfile nuget.config | |
| - name: Restore NuGet packages | |
| run: dotnet restore LunaDraw.csproj --configfile nuget.config | |
| - 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 |