Skip to content

Commit

Permalink
GitHub action - 'Setup-VSTest' update
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavminhas committed Apr 28, 2024
1 parent 5d1773a commit b66b39f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ on:
branches: [ main ]
workflow_dispatch:

env:
VSTEST_CONSOLE_PATH: C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow

jobs:
Build_DotNet_OS-VSVersion:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-2019 ]
vs-version: [ '16.1']
env:
VSTEST_CONSOLE_PATH: C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow

steps:
- name: Checkout Repository
Expand Down Expand Up @@ -59,7 +58,7 @@ jobs:
replacements: '__CLIENTSECRET__=${{ secrets.CLIENT_SECRET }}'

- name: Setup-VSTest
run: echo ${{env.VSTEST_CONSOLE_PATH}}
run: echo 'VSTEST Console Path --> ${{env.VSTEST_CONSOLE_PATH}}'

- name: Test
run: ${{env.VSTEST_CONSOLE_PATH}}\vstest.console.exe ${{ github.workspace }}\GmailAPIHelper.NET.Tests\bin\Release\GmailAPIHelper.NET.Tests.dll /TestCaseFilter:"TestCategory=GMAIL-TESTS-DOTNETFRAMEWORK"
Expand Down

0 comments on commit b66b39f

Please sign in to comment.