Skip to content

fix(installer): guard SourceDir/OutputDir with #ifndef so CI can over… #7

fix(installer): guard SourceDir/OutputDir with #ifndef so CI can over…

fix(installer): guard SourceDir/OutputDir with #ifndef so CI can over… #7

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
DOTNET_VERSION: '8.0.x'
jobs:
build-and-test:
name: Build & Test
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
# SQLTriage.csproj hardcodes <RuntimeIdentifier>win-x64</RuntimeIdentifier>,
# so restore must download the win-x64 runtime pack or build fails with
# NETSDK1112. Pass -r win-x64 explicitly.
- name: Restore
run: dotnet restore SQLTriage.sln -r win-x64
- name: Build
run: dotnet build SQLTriage.sln -c Release --no-restore
- name: Test
run: dotnet test SQLTriage.sln -c Release --no-build --verbosity normal