-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (56 loc) · 1.98 KB
/
build.yml
File metadata and controls
70 lines (56 loc) · 1.98 KB
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
61
62
63
64
65
66
67
68
69
70
#CI/MANUAL TRIGGER
name: Build
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
DotNet_OS-VSVersion:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-2019 ]
vs-version: [ '16.5']
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Nuget Restore
run: nuget restore ShadowRoot.Digger.sln -Verbosity quiet
- name: Setup-MSBuild VS-Version (${{ matrix.vs-version }})
uses: microsoft/setup-msbuild@v1
with:
vs-version: ${{ matrix.vs-version }}
- name: Build
id: build
run: |
msbuild ShadowRoot.Digger.sln /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
- name: Setup-VSTest
uses: darenm/Setup-VSTest@v1.2
- name: Test
run: vstest.console.exe ${{ github.workspace }}\ShadowRootDigger.NET.Tests\bin\Release\ShadowRootDigger.NET.Tests.dll /Settings:Test.runsettings /TestCaseFilter:"TestCategory=TESTS-DOTNETFRAMEWORK"
DotNetCore_OS-Version:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-2019, ubuntu-20.04, macOS-11 ]
dotnet-version: [ '3.1.x', '6.0.x' ]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Dotnet Version (${{ matrix.dotnet-version }})
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Build
run: dotnet build ShadowRootDigger.CORE.Tests/ShadowRootDigger.CORE.Tests.csproj --configuration Release
- name: Test
if: ${{ matrix.os == 'windows-2019' && matrix.dotnet-version == '3.1.x' }}
run: dotnet test --no-build --verbosity normal --configuration Release --settings:Test.runsettings --filter TestCategory=TESTS-DOTNETCORE