From be93c7f2956c49bbaff30c7ca751f86c7cb5b567 Mon Sep 17 00:00:00 2001 From: Anatolij Vasilev Date: Sat, 21 Oct 2023 10:47:38 +0200 Subject: [PATCH] Add Setup-VSTest action and update test command --- .github/workflows/tests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1cc5952..22ecc7b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup MSBuild uses: microsoft/setup-msbuild@v1.0.2 @@ -21,6 +21,8 @@ jobs: - name: Build run: msbuild /p:Configuration=Release SoG_SGreader.sln + - name: Setup VSTest + uses: warrenbuckley/Setup-VSTest@v1 + - name: Test - run: | - & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" SoG_SGreader.Test\bin\Release\SoG_SGreader.Test.dll \ No newline at end of file + run: vstest.console.exe SoG_SGreader.Test\bin\Release\SoG_SGreader.Test.dll \ No newline at end of file