From 8362dcbe021fe7e3a5a6534c62bdcf13ac3c39cb Mon Sep 17 00:00:00 2001 From: tchapi Date: Sun, 3 Sep 2023 00:22:35 +0200 Subject: [PATCH] fix: CI (2) --- .github/workflows/ci.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 80445ed..2b3e3df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,16 +83,28 @@ jobs: docker-php-ext-configure intl docker-php-ext-configure gd docker-php-ext-install pdo pdo_mysql intl gd - - name: Install Composer - run: wget -qO - https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --quiet - - name: Remove composer.lock - run: rm -rf composer.lock - - name: Install lowest dependencies with Composer + # - name: Install Composer + # run: wget -qO - https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --quiet + - name: Install dependencies if: matrix.dependencies == 'lowest' - run: composer update --no-progress --no-interaction --prefer-stable --prefer-lowest --ansi - - name: Install highest dependencies with Composer + uses: php-actions/composer@v6 + with: + command: update + php_version: "${{ matrix.php }}" + args: " --no-progress --no-interaction --ansi --prefer-stable --prefer-lowest" + - name: Install dependencies if: matrix.dependencies == 'highest' - run: composer update --no-progress --no-interaction --ansi + uses: php-actions/composer@v6 + with: + command: update + php_version: "${{ matrix.php }}" + args: " --no-progress --no-interaction --ansi" + # - name: Install lowest dependencies with Composer + # if: matrix.dependencies == 'lowest' + # run: composer update --no-progress --no-interaction --prefer-stable --prefer-lowest --ansi + # - name: Install highest dependencies with Composer + # if: matrix.dependencies == 'highest' + # run: composer update --no-progress --no-interaction --ansi - name: Migrate database run: bin/console doctrine:schema:update --force --no-interaction - name: Run tests with PHPUnit