-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (36 loc) · 1.1 KB
/
tests.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
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Run tests
runs-on: windows-2019
strategy:
matrix:
framework: [ 'netcoreapp2.0', 'net45' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.x
- name: Install dependencies
shell: cmd
run: dotnet restore src/Tests/
- name: Test with dotnet
shell: cmd
run: dotnet test --logger trx --framework ${{ matrix.framework }} --results-directory "TestResults-${{ matrix.framework }}" src/Tests/ConfigSettingsTests.csproj
- name: Upload dotnet test results
uses: actions/upload-artifact@v2
with:
name: dotnet-results-${{ matrix.framework }}
path: src/Tests/TestResults-${{ matrix.framework }}
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}