Skip to content

Commit

Permalink
add vstest setup and updated test command
Browse files Browse the repository at this point in the history
  • Loading branch information
kerenr-jfrog committed Sep 17, 2024
1 parent b88724e commit 2f8ff58
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Run Tests
on:
push:
pull_request:
type: [ labeled ]
type: [ labeled ]

jobs:
build:
Expand All @@ -12,11 +12,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0'

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
Expand All @@ -37,15 +32,18 @@ jobs:
dotnet restore
nuget restore
- name: Download JFrog CLI executable
- name: Download JFrog CLI executable
env:
JFROG_CLI_VERSION: ${{ env.JFROG_CLI_VERSION }}
JFROG_CLI_VERSION: '2.67.0' # jfrog cli version can be changed here
run: |
.\JFrogVSExtension\Resources\DownloadJfrogCli.ps1
shell: pwsh

- name: Build VSIX Project # build the vsix project using multi-core compilation and parallel builds
run: msbuild ./JFrogVSExtension/ /p:Configuration=Release /p:Platform="AnyCPU" /p:BuildInParallel=true /m
run: msbuild JFrogVSExtension.sln /p:Configuration=Release /p:Platform="Any CPU" /p:BuildInParallel=true /m

- name: Setup VSTest
uses: darenm/[email protected]

- name: Run tests
run: dotnet test --no-build --verbosity normal
- name: Run MSTest Project
run: vstest.console.exe ./UnitTestJfrogVSExtension/bin/Release/UnitTestJfrogVSExtension.dll

0 comments on commit 2f8ff58

Please sign in to comment.