Skip to content

Commit

Permalink
Add Applicattion.IntegrationTests
Browse files Browse the repository at this point in the history
  • Loading branch information
ubhaya committed Dec 27, 2023
1 parent bbc6754 commit 7e328c9
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/CleanArchitecture.Blazored.Dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,22 @@ on:
types:
- completed

env:
SqlServerPassword: CleanArchitectureBlazored@123

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ubuntu-latest

services:
sql-server:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
ACCEPT_EULA: 'Y'
MSSQL_SA_PASSWORD: CleanArchitectureBlazored@123
ports:
- 1433:1433
options: --health-cmd "sqlcmd -U sa -P CleanArchitectureBlazored@123 -Q \"SELECT 1\"" --health-interval 10s --health-timeout 10s --health-retries 5

steps:
- uses: actions/checkout@v3
Expand All @@ -28,6 +38,11 @@ jobs:
run: dotnet restore CleanArchitecture.Blazored.Dev.sln
- name: Build solution
run: dotnet build --no-restore CleanArchitecture.Blazored.Dev.sln -c Release
- name: Execute Application.IntegrationTests
run: |
dotnet test -c Release --no-build content/CleanArchitecture.Blazored/tests/Application.IntegrationTests/Application.IntegrationTests.csproj
env:
ConnectionStrings__DefaultConnection: "Server=localhost,1433;Database=CleanArchitecture;User=sa;Password:${{ env.SqlServerPassword }};MultipleActiveResultSets=true"
- name: Execute Application.UnitTest
run: dotnet test -c Release --no-build content/CleanArchitecture.Blazored/tests/Application.UnitTests/Application.UnitTests.csproj
- name: Execute Domain.UnitTest
Expand Down

0 comments on commit 7e328c9

Please sign in to comment.