-
Notifications
You must be signed in to change notification settings - Fork 45
52 lines (45 loc) · 1.49 KB
/
CI_NetCore_2_2.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
name: .NET Core 2.2
on:
push:
paths-ignore:
- '**.md'
- '**.txt'
- '**.nuspec'
- 'Lame.Test.Framework/**'
- '.git*'
- '!.git*/**.yml'
jobs:
ci:
runs-on: windows-latest
strategy:
matrix:
dnversion: ['3.1.x', '2.1.x']
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Setup .NET Core ${{ matrix.dnversion }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dnversion }}
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Setup VSTest
uses: darenm/Setup-VSTest@v1.2
- name: Restore packages
run: nuget restore NAudio.Lame.sln
- name: Build LameDLLWrap (Debug|x86)
run: dotnet build LameDLLWrap -c:Debug -p:Platform=x86
- name: Build LameDLLWrap (Debug|x64)
run: dotnet build LameDLLWrap -c:Debug -p:Platform=x64
- name: Build LameDLLWrap (Debug|AnyCPU)
run: dotnet build LameDLLWrap -c:Debug -p:Platform=AnyCPU
- name: Build NAudio.Lame
run: dotnet build NAudio.Lame -c:Debug -p:Platform=AnyCPU
- name: Build Lame.Test.Core
run: dotnet build Lame.Test.Core -c:Debug -p:Platform=AnyCPU
- name: Run .NET Core tests
run: dotnet test Lame.Test.Core
- name: Build Lame.Test.Framework
run: dotnet build Lame.Test.Framework -c:Debug -p:Platform=AnyCPU
- name: Run Framework tests
run: vstest.console.exe Lame.Test.Framework\bin\Debug\Lame.Test.Framework.dll