-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (45 loc) · 1.13 KB
/
test-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
42
43
44
45
46
47
48
49
50
51
name: Test .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
#'4.6', '4.6.1', '4.6.2', '4.7', '4.7.1', '4.7.2'
runs-on: windows-latest
#strategy:
# matrix:
# dotnet: [ '2.2.x', '2.0', '3.0', '3.1.x', '5.0.x' ]
steps:
- uses: actions/checkout@v2
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Setup 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x'
- name: Setup 3.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.x'
- name: Setup 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.x'
- name: Setup 2.2
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2.x'
- name: Setup 2.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal