Skip to content

Commit 1643e78

Browse files
committed
ci: run the unit and integration suites as separate steps
Keeps the signal readable when one of them fails, and makes the Testcontainers step explicit about needing the runner's Docker daemon.
1 parent 0d9b0e6 commit 1643e78

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,17 @@ jobs:
2424
- name: Build
2525
run: dotnet build Trust-Finance.sln --configuration Release --no-restore
2626

27-
- name: Test
28-
run: dotnet test Trust-Finance.sln --configuration Release --no-build --verbosity normal
27+
- name: Unit tests
28+
run: >
29+
dotnet test Trust-Finance.Tests/Trust-Finance.Tests.csproj
30+
--configuration Release --no-build --verbosity normal
31+
32+
# Testcontainers starts a real SQL Server via the Docker daemon that is
33+
# preinstalled on the GitHub-hosted runners.
34+
- name: Integration tests (Testcontainers + SQL Server)
35+
run: >
36+
dotnet test Trust-Finance.IntegrationTests/Trust-Finance.IntegrationTests.csproj
37+
--configuration Release --no-build --verbosity normal
2938
3039
web:
3140
name: Web (build)

0 commit comments

Comments
 (0)