-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 883 Bytes
/
ci.yml
File metadata and controls
36 lines (28 loc) · 883 Bytes
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
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