Skip to content

Commit

Permalink
ci: move capi and aui back to compose.test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tnotheis committed Jul 5, 2024
1 parent 04d1603 commit f30ebca
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 41 deletions.
17 changes: 0 additions & 17 deletions .ci/compose.test.aui.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .ci/compose.test.capi.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .ci/compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,40 @@
services:
consumer-api:
container_name: consumer-api-test
hostname: consumer-api
image: consumer-api:0.0.1
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "5000:8080"
depends_on:
database-migrator:
condition: service_completed_successfully
rabbitmq:
condition: service_started
azure-storage-emulator:
condition: service_started
configs:
- source: Config
target: app/appsettings.override.json

admin-ui:
container_name: admin-ui-test
hostname: admin-ui
image: admin-ui:0.0.1
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "5173:8080"
depends_on:
database-migrator:
condition: service_completed_successfully
rabbitmq:
condition: service_started
configs:
- source: Config
target: app/appsettings.override.json

event-handler-service:
container_name: event-handler-service-test
image: event-handler-service:0.0.1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,18 +246,18 @@ jobs:
- name: Start compose stack
run: |
docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.${{matrix.database}}.yml -f ./.ci/compose.test.aui.yml -f ./.ci/compose.test.capi.yml down -v
docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.${{matrix.database}}.yml -f ./.ci/compose.test.aui.yml -f ./.ci/compose.test.capi.yml up --no-build --wait -d
docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.${{matrix.database}}.yml down -v
docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.${{matrix.database}}.yml up --no-build --wait -d
- name: Run integration tests
run: dotnet test --no-restore --no-build --logger "GitHubActions;summary.includeNotFoundTests=false" ${{matrix.test-project.path}}
run: dotnet test --no-restore --no-build --logger "GitHubActions;summary.includeNotFoundTests=false;summary.includeSkippedTests=false;summary.includePassedTests=false" ${{matrix.test-project.path}}
env:
ADMIN_API_BASE_ADDRESS: "http://localhost:5173"
CONSUMER_API_BASE_ADDRESS: "http://localhost:5000"

- name: Save Docker Logs
if: failure()
run: docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.${{matrix.database}}.yml -f ./.ci/compose.test.aui.yml -f ./.ci/compose.test.capi.yml logs > logs.txt
run: docker compose -f ./.ci/compose.test.yml -f ./.ci/compose.test.${{matrix.database}}.yml logs > logs.txt

- name: Archive logs
if: failure()
Expand Down Expand Up @@ -304,7 +304,7 @@ jobs:
run: ./backbone/.ci/loadDockerImages.sh

- name: Start compose stack
run: docker compose -f ./backbone/.ci/compose.test.yml -f ./backbone/.ci/compose.test.${{matrix.database}}.yml -f ./backbone/.ci/compose.test.capi.yml up --no-build --wait -d
run: docker compose -f ./backbone/.ci/compose.test.yml -f ./backbone/.ci/compose.test.${{matrix.database}}.yml up --no-build --wait -d

- name: Install runtime dependencies
working-directory: ./runtime
Expand Down

0 comments on commit f30ebca

Please sign in to comment.