-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 1.01 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
name: test
on:
push:
branches:
- master
env:
SOLUTION_FILE_PATH: .
jobs:
test:
runs-on: windows-latest
strategy:
matrix:
configuration:
- Debug
- Release
platform:
- Win32
- x64
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Setup VSTest.console.exe
shell: powershell
run: |
$ErrorActionPreference = "Stop"
$vs = & "${Env:ProgramFiles(x86)}/Microsoft Visual Studio/Installer/vswhere.exe" -latest -property installationPath
Add-Content $Env:GITHUB_PATH "$vs/Common7/IDE/CommonExtensions/Microsoft/TestWindow"
- name: Build unit tests
run: msbuild.exe -m -target:VietTypeUnitTests:Rebuild -p:Configuration=${{matrix.configuration}} -p:Platform=${{matrix.platform}} .
- name: Run tests
run: vstest.console.exe ${{matrix.platform}}/${{matrix.configuration}}/VietTypeUnitTests.dll