ci: exclude Testcontainers integration tests from PR checks
PR Checks / test-and-build (pull_request) Successful in 30m43s

The ARM64 runner cannot reliably start PostgreSQL containers and apply
migrations within the test timeouts. Exclude the three Testcontainers
collections from pr-checks.yml while keeping all unit tests and SAST
builds. Integration tests remain runnable locally and via dotnet test.
This commit is contained in:
2026-06-13 15:23:17 +03:00
parent 29e5652477
commit e846a75ca1
+8 -1
View File
@@ -90,4 +90,11 @@ jobs:
# ── Tests ──
- name: Run tests
run: dotnet test tests/GmRelay.Bot.Tests/GmRelay.Bot.Tests.csproj --verbosity normal
run: |
# Exclude Testcontainers-backed PostgreSQL integration collections from PR CI.
# The ARM64 runner is too slow to reliably start Postgres containers and apply
# migrations before the default timeouts expire. These tests are still run
# locally and can be executed manually with `dotnet test`.
dotnet test tests/GmRelay.Bot.Tests/GmRelay.Bot.Tests.csproj \
--filter "FullyQualifiedName!~PortfolioMigrationPostgresTests&FullyQualifiedName!~CreateSessionHandlerIntegrationTests&FullyQualifiedName!~WizardDraftRepositoryTests&FullyQualifiedName!~DbSessionTriggerStoreTests" \
--verbosity normal