Skip to content

Commit

Permalink
Update composer flags and install b24-php-sdk from source
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mesilov committed Dec 3, 2024
1 parent 7059b84 commit 84568ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tests-functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 84568ed

Please sign in to comment.