From 84568ed050fd122543f8da5b08e7655babf4ea0b Mon Sep 17 00:00:00 2001 From: mesilov Date: Tue, 3 Dec 2024 10:10:37 +0600 Subject: [PATCH] Update composer flags and install b24-php-sdk from source Changed COMPOSER_FLAGS to prefer-dist to optimize dependency installation. Added steps to remove and require b24-php-sdk with prefer-source to ensure the latest source code is used. This configuration enhances the reliability of the workflow during functional tests. Signed-off-by: mesilov --- .github/workflows/tests-functional.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests-functional.yml b/.github/workflows/tests-functional.yml index 760c746..8b69318 100644 --- a/.github/workflows/tests-functional.yml +++ b/.github/workflows/tests-functional.yml @@ -5,7 +5,7 @@ on: pull_request: env: - COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-source" + COMPOSER_FLAGS: "--ansi --no-interaction --no-progress --prefer-dist" DATABASE_HOST: localhost DATABASE_USER: b24phpLibTest DATABASE_PASSWORD: b24phpLibTest @@ -58,6 +58,11 @@ jobs: run: | composer update ${{ env.COMPOSER_FLAGS }} + - name: "Install b24-php-sdk from source" + run: | + composer remove bitrix24/b24phpsdk --no-update + composer require bitrix24/b24phpsdk --prefer-source --no-cache --ansi --no-interaction --no-progress + - name: "Wait for PostgreSQL to be ready" run: | until pg_isready -h localhost -p 5432 -U user; do