Code graph pipeline improvements and fixes #1107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | docker compose | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
docker-compose-test: | |
runs-on: ubuntu-latest | |
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 |