From b09cfb66dc616abfb62c0a5f58bb07818bbdd293 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 26 Sep 2024 10:34:31 +0200 Subject: [PATCH] fix integration tests sometimes not finding docker-compose but 'docker compose' Signed-off-by: Julien Veyssier --- .github/workflows/integration.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 4d47daef..1ec9d8c6 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -87,7 +87,9 @@ jobs: path: apps/${{ env.APP_NAME }} - name: Start keycloak - run: docker-compose -f "docker-compose.integration.yml" up -d --build + run: | + docker-compose -f "docker-compose.integration.yml" up -d --build \ + || docker compose -f "docker-compose.integration.yml" up -d --build working-directory: apps/${{ env.APP_NAME }}/tests/ - name: Set up php ${{ matrix.php-versions }} @@ -130,5 +132,7 @@ jobs: - name: Stop containers if: always() - run: docker-compose -f "docker-compose.integration.yml" down + run: | + docker-compose -f "docker-compose.integration.yml" down \ + || docker compose -f "docker-compose.integration.yml" down working-directory: apps/${{ env.APP_NAME }}/tests/