forked from jasontaylordev/CleanArchitecture
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 844 Bytes
/
dotnet-build.yml
File metadata and controls
31 lines (27 loc) · 844 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
name: Build
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
services:
sql:
image: mcr.microsoft.com/mssql/server
ports:
- 1433:1433
env:
SA_PASSWORD: Your_password123
ACCEPT_EULA: Y
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --filter "FullyQualifiedName!~AcceptanceTests"
env:
ConnectionStrings__DefaultConnection: Server=.;Database=CleanArchitectureDb-Test;User=sa;Password=Your_password123;MultipleActiveResultSets=true;Encrypt=false;