From 27aa94cc9f602915425e59cab13b7e4360a843c4 Mon Sep 17 00:00:00 2001 From: julkwel Date: Mon, 8 Jan 2024 17:01:46 +0300 Subject: [PATCH] Env : update env.test for github workflows --- .github/workflows/symfony.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/symfony.yml b/.github/workflows/symfony.yml index 185025c..a832742 100644 --- a/.github/workflows/symfony.yml +++ b/.github/workflows/symfony.yml @@ -28,11 +28,23 @@ jobs: - name: Copy .env.test run: php -r "file_exists('.env') || copy('.env.test', '.env');" - - name: Build and run docker - run: | - docker compose -f compose.yaml build - docker compose up - + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build Docker Images + uses: docker/bake-action@v4 + with: + pull: true + load: true + files: | + compose.yaml + - + name: Start services + run: docker compose up --wait + - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist