-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.29 KB
/
dotnet.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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
# branches: [ "main" ]
branches-ignore: ["develop"]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install .NET Maui
run: dotnet workload install maui
- name: Restore dependencies
run: dotnet restore Udap.sln
- name: Generate PKI
run: dotnet test -c Release _tests/Udap.PKI.Generator/Udap.PKI.Generator.csproj
- name: Build
run: dotnet build -c Release Udap-Maui.sln
- name: Test Udap.Common.Tests
run: dotnet test -c Release _tests/Udap.Common.Tests/Udap.Common.Tests.csproj --no-build --verbosity normal
- name: Test UdapMetadata.Tests
run: dotnet test -c Release _tests/UdapMetadata.Tests/UdapMetadata.Tests.csproj --no-build --verbosity normal
- name: Test UdapServer.Tests
run: dotnet test -c Release _tests/UdapServer.Tests/UdapServer.Tests.csproj --no-build --verbosity normal