-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (41 loc) · 1.39 KB
/
build.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
name: Build SQLCallStackResolver
on:
pull_request:
workflow_dispatch:
inputs:
testsfilter:
description: 'Filter expression to use for running tests'
default: 'TestCategory=Unit|TestCategory=Perf'
required: false
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
- name: Restore NuGet Packages
run: nuget restore SQLCallStackResolver.sln
- name: Build SQLCallStackResolver
run: msbuild SQLCallStackResolver.sln /p:Configuration=Release
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: SQLCallStackResolver
path: |
Target/Release
!Target/Release/*.xml
!Target/Release/Tests
- name: Prep for running tests
run: ./downloadsyms.ps1
working-directory: Tests/TestCases
shell: powershell
- name: Run tests
run: |
../../../utils/import-vsenv.ps1
& "$env:VSINSTALLDIR/Common7/IDE/Extensions/TestPlatform/vstest.console.exe" ./SQLCalLStackResolver.Tests.dll /Parallel /logger:"console;verbosity=normal" /TestCaseFilter:"${{ github.event.inputs.testsfilter || 'TestCategory=Unit' }}"
working-directory: Target/Release/Tests
shell: powershell