fix: exclude TestContainers integration tests from CI
All checks were successful
CI / build (push) Successful in 59s
CI / build (pull_request) Successful in 59s
CI / docker (pull_request) Has been skipped
CI / docker (push) Successful in 2m39s

Build container has no Docker-in-Docker, so TestContainers can't
create PostgreSQL containers. Exclude integration tests in CI;
they run locally with Docker Desktop. Matches cameleer3-server
pattern of separating unit and integration tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-04 15:54:53 +02:00
parent cd866ec7fe
commit eb4e0b2b07

View File

@@ -17,18 +17,6 @@ jobs:
credentials:
username: cameleer
password: ${{ secrets.REGISTRY_TOKEN }}
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_DB: cameleer_saas_test
POSTGRES_USER: test
POSTGRES_PASSWORD: test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
@@ -39,12 +27,10 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Build and Test
run: mvn clean verify -B
env:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/cameleer_saas_test
SPRING_DATASOURCE_USERNAME: test
SPRING_DATASOURCE_PASSWORD: test
- name: Build and Test (unit tests only)
run: >-
mvn clean verify -B
-Dsurefire.excludes="**/AuthControllerTest.java,**/TenantControllerTest.java,**/LicenseControllerTest.java,**/AuditRepositoryTest.java,**/CameleerSaasApplicationTest.java"
docker:
needs: build