-
Notifications
You must be signed in to change notification settings - Fork 163
60 lines (55 loc) · 1.46 KB
/
build_and_test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build and Test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
framework:
name: Build and Test - Framework
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Setup Nuget
uses: Nuget/[email protected]
- name: Restore
run: nuget restore
- name: Build
run: msbuild .\Box.V2
- name: Test
run: dotnet test .\Box.V2.Test -f net462
core:
name: Build and Test - Core
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
2.0.0
2.2.x
3.1.x
5.0.x
6.0.x
- name: Build
run: dotnet build .\Box.V2.Core
- name: Test netcoreapp2.0
run: dotnet test .\Box.V2.Test -f netcoreapp2.0
- name: Test netcoreapp2.2
run: dotnet test .\Box.V2.Test -f netcoreapp2.2
- name: Test netcoreapp3.1
run: dotnet test .\Box.V2.Test -f netcoreapp3.1
- name: Test net5.0
run: dotnet test .\Box.V2.Test -f net5.0
- name: Test net6.0
run: dotnet test .\Box.V2.Test -f net6.0