-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (63 loc) · 2.24 KB
/
test.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Run Tests
on: [push]
jobs:
test_v8_0_3_-_v8_1_0:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Checkout SDK
uses: actions/checkout@v4
with:
repository: julusian/atemsdk
token: ${{ secrets.ATEMSDK_TOKEN }}
path: AtemSDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0
- name: Setup msbuild
uses: microsoft/setup-msbuild@v2
- name: Setup VSTest Path
uses: darenm/[email protected]
- name: Build
run: |
regsvr32 $Env:GITHUB_WORKSPACE/AtemSDK/v8.1.0/BMDSwitcherAPI.dll /s
regsvr32 $Env:GITHUB_WORKSPACE/AtemSDK/v8.1.0/BMDSwitcherAPI64.dll /s
dotnet restore
msbuild .\LibAtem.ComparisonTests.sln /property:Platform=v8.1 /property:Configuration=Release
cp $Env:GITHUB_WORKSPACE/AtemSDK/v8.1.0/Interop.BMDSwitcherAPI.dll LibAtem.MockTests/bin/v8.1.1/Release/net8.0-windows/
- name: Test
run: |
vstest.console.exe LibAtem.MockTests/bin/v8.1/Release/net8.0-windows/LibAtem.MockTests.dll
test_v8_1_1_-_v9_5_0:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Checkout SDK
uses: actions/checkout@v4
with:
repository: julusian/atemsdk
token: ${{ secrets.ATEMSDK_TOKEN }}
path: AtemSDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0
- name: Setup msbuild
uses: microsoft/setup-msbuild@v2
- name: Setup VSTest Path
uses: darenm/[email protected]
- name: Build
run: |
# regsvr32 $Env:GITHUB_WORKSPACE/AtemSDK/v9.5.0/BMDSwitcherAPI.dll /s
regsvr32 $Env:GITHUB_WORKSPACE/AtemSDK/v9.5.0/BMDSwitcherAPI64.dll /s
dotnet restore
msbuild .\LibAtem.ComparisonTests.sln /property:Platform=v8.1.1 /property:Configuration=Release
cp $Env:GITHUB_WORKSPACE/AtemSDK/v9.5.0/Interop.BMDSwitcherAPI.dll LibAtem.MockTests/bin/v8.1.1/Release/net8.0-windows/
- name: Test
run: |
vstest.console.exe LibAtem.MockTests/bin/v8.1.1/Release/net8.0-windows/LibAtem.MockTests.dll