Skip to content

Use vstest-action rather than Setup-VSTest #99

Use vstest-action rather than Setup-VSTest

Use vstest-action rather than Setup-VSTest #99

Workflow file for this run

name: Unit test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions: read-all
jobs:
unittest:
runs-on: windows-2022
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
- name: Setup msbuild
uses: microsoft/setup-msbuild@v2
- name: Build unit test
run: msbuild SimpleComTest\SimpleComTest.vcxproj -property:"Configuration=Debug" -property:"Platform=x64"
- name: Run unit test
uses: microsoft/vstest-action@v1.0.0
with:
testAssembly: SimpleComTest\x64\Debug\SimpleComTest.dll
platform: x64