cognee/.github/workflows/docker_compose.yml
Vasilije c3d33e728e
feat: New tests (#678)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin

---------

Co-authored-by: Daniel Molnar <soobrosa@gmail.com>
Co-authored-by: Igor Ilic <30923996+dexters1@users.noreply.github.com>
Co-authored-by: Igor Ilic <igorilic03@gmail.com>
2025-04-10 10:52:48 +02:00

39 lines
813 B
YAML

name: test | docker compose
on:
workflow_call:
jobs:
docker-compose-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker images
env:
ENVIRONMENT: dev
ENV: dev
run: |
docker compose -f docker-compose.yml build
- name: Run Docker Compose
env:
ENVIRONMENT: dev
ENV: dev
run: |
docker compose -f docker-compose.yml up -d
- name: Wait for services to be ready
run: |
# Add any necessary health checks or wait commands
sleep 30
- name: Shut down Docker Compose
if: always()
run: |
docker compose -f docker-compose.yml down