forked from neozhu/CleanArchitectureWithBlazorServer
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.18 KB
/
dotnet.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
38
39
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
services:
sqldb:
image: mcr.microsoft.com/mssql/server
ports:
- 1433:1433
env:
SA_PASSWORD: Your_password123
ACCEPT_EULA: Y
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore CleanArchitecture.Blazor.sln
- name: Build
run: dotnet build CleanArchitecture.Blazor.sln --configuration Debug --no-restore
# - name: Test
# run: dotnet test CleanArchitecture.Blazor.sln --no-build --configuration Release --filter "FullyQualifiedName!~AcceptanceTests"
env:
DatabaseSettings__DBProvider: mssql
ConnectionStrings__ConnectionString: Server=sqldb;Database=BlazorDashboardDb.Test;User=sa;Password=Your_password123;MultipleActiveResultSets=true;Encrypt=false;