-
Notifications
You must be signed in to change notification settings - Fork 248
37 lines (34 loc) · 855 Bytes
/
ci.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
name: Build and Test
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'Specification/**'
- 'Specification.EntityFrameworkCore/**'
- 'Specification.EntityFramework6/**'
pull_request:
branches:
- main
paths:
- 'Specification/**'
- 'Specification.EntityFrameworkCore/**'
- 'Specification.EntityFramework6/**'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Install SQL Local DB
run: ./setup-sqllocaldb.ps1
shell: pwsh
- name: Build
run: dotnet build ci.slnf --configuration Release
- name: Test
run: dotnet test ci.slnf --configuration Release --no-build --no-restore