-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (34 loc) · 1.3 KB
/
tests.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
41
42
43
name: Run Tests
on:
push:
pull_request:
type: [ labeled ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
with:
vs-version: 'latest'
- name: Cache NuGet packages # optimizing the build process
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }}
restore-keys: nuget-${{ runner.os }}-
- name: Restore dependencies
run: |
dotnet restore
nuget restore
- name: Download JFrog CLI executable
env:
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.sln /p:Configuration=Release /p:Platform="Any CPU" /p:BuildInParallel=true /m
- name: Run MSTest Project # run tests in release mode with logs presentation
run: dotnet test --no-build --configuration Release --logger "console;verbosity=detailed" ./UnitTestJfrogVSExtension/bin/Release/UnitTestJfrogVSExtension.dll