Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run Tests

on:
push:
branches: [ main, stage, dev ]
pull_request:
branches: [ main, stage, dev ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Build and run tests
run: |
docker compose -f docker-compose-tests.yml up --build --abort-on-container-exit --exit-code-from x_test_service

- name: Clean up
if: always()
run: |
docker compose -f docker-compose-tests.yml down -v
docker system prune -f
12 changes: 12 additions & 0 deletions .launch/tests/.test_env
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ DB_USER=dev
DB_PASSWORD=dev
DB_NAME=test_db

# GRPC settings
# ------------------------------------------------------------------------------
GRPC_HOST=0.0.0.0
GRPC_PORT=50051


# Redis
# ------------------------------------------------------------------------------
Expand All @@ -30,3 +35,10 @@ REDIS_URL=redis://172.17.0.1:6389/0
# ------------------------------------------------------------------------------
CELERY_BROKER_URL=redis://172.17.0.1:6389/11
CELERY_RESULT_BACKEND=redis://172.17.0.1:6389/12


# Mesage Broker
# ------------------------------------------------------------------------------
MESSAGE_BROKER_URL=amqp://dev:dev@0.0.0.0:5672
DEFAULT_EXCHANGER=YOUR_DEFAULT_EXCHANGER
DEFAULT_QUEUE=YOUR_DEFAULT_QUEUE