Skip to content

Build SQLCallStackResolver #315

Build SQLCallStackResolver

Build SQLCallStackResolver #315

Workflow file for this run

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