-
Notifications
You must be signed in to change notification settings - Fork 31
58 lines (43 loc) · 1.15 KB
/
net-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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: .NET CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# Build and test on .NET Core
dotnet-core-ci:
name: .NET Core - test
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Set up .NET
uses: actions/[email protected]
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: nuget restore
- name: Build solution
run: dotnet build
- name: Run tests
run: dotnet test
# - name: Run linter
# run: dotnet format --verify-no-changes
# Build and test on .NET Framework
dotnet-framework-ci:
name: .NET Framework - test
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v1
- name: Set up VSTest
uses: darenm/Setup-VSTest@v1
- name: Install dependencies
run: nuget restore
- name: Build DuoApiTest solution
run: msbuild.exe duo_api_csharp.sln
- name: Run Tests dll
run: vstest.console.exe .\test\bin\Debug\DuoApiTest.dll