-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (32 loc) · 1.11 KB
/
ci.yml
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
name: Continuous Integration
on:
push:
branches: [ "main" ]
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
env:
DOTNET_NOLOGO: true # Disable the .NET logo
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Install MAUI Workload
run: dotnet workload install maui --ignore-failed-sources
- name: Restore dependencies
run: dotnet restore
working-directory: src/Maui/OnScreenSizeMarkup.Maui/
- name: Build
run: dotnet build OnScreenSizeMarkup.Maui.csproj --no-restore
working-directory: src/Maui/OnScreenSizeMarkup.Maui/
- name: Test
run: dotnet test OnScreenSizeMarkup.Maui.Tests.csproj --verbosity normal
working-directory: src/Maui/OnScreenSizeMarkup.Maui.Tests/