-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.19 KB
/
dotnet-desktop.yml
File metadata and controls
46 lines (36 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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