-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 1.06 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
name: .NET
on:
push:
branches: [ main, dev/** ]
pull_request:
branches: [ main, dev/** ]
jobs:
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore /p:Platform="For Test"
- name: Test Build
run: dotnet build /p:Platform="For Test" --no-restore
- name: Test
run: dotnet test /p:Platform="For Test" --no-build --verbosity normal
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore /p:Platform="Full Build"
- name: Full Build
run: dotnet build /p:Platform="Full Build" --no-restore
- name: Test Build
run: dotnet build /p:Platform="For Test" --no-restore
- name: Test
run: dotnet test /p:Platform="For Test" --no-build --verbosity normal