-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (42 loc) · 1.27 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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.x
- name: Setup msbuild
uses: microsoft/[email protected]
- name: Setup nuget
uses: NuGet/[email protected]
- name: Restore dependencies
run: dotnet restore MongoDB.Analyzer.sln
- name: Build
run: msbuild MongoDB.Analyzer.sln -restore:false
- name: Test net472
uses: microsoft/[email protected]
with:
testAssembly: MongoDB.Analyzer.Tests.dll
searchFolder: ./tests/MongoDB.Analyzer.Tests/bin/debug/net472/
runInParallel: false
- name: Test netcoreapp3.1
uses: microsoft/[email protected]
with:
testAssembly: MongoDB.Analyzer.Tests.dll
searchFolder: ./tests/MongoDB.Analyzer.Tests/bin/debug/netcoreapp3.1/
runInParallel: false
- name: Tests Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: tests results
path: '**/TestResults/*.trx'
reporter: dotnet-trx