From 6141d789808562977d71b00f8c555607df0091ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigui=20Kess=C3=A9=20Emmanuel?= Date: Sun, 11 Aug 2024 04:52:22 +0100 Subject: [PATCH] :green_heart: Change the way PHP dependencies are installed --- .github/workflows/ci.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a43000d..9fcc2fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,9 @@ jobs: php: [8.2, 8.3] node: [20.16] pnpm: [9.7.0] - dependencies: [lowest, highest] + dependency: [prefer-stable] experimental: [false] - name: 👷 CI PHP-${{ matrix.php }} ${{ matrix.dependencies }} with Node-${{ matrix.node }} on ${{ matrix.os }} + name: 👷 CI PHP-${{ matrix.php }} ${{ matrix.dependency }} with Node-${{ matrix.node }} on ${{ matrix.os }} steps: - name: Checkout @@ -31,9 +31,9 @@ jobs: - uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.dependency }}-${{ hashFiles('composer.json') }} restore-keys: | - ${{ runner.os }}-dependencies-php-${{ matrix.php }}-composer- + ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.dependency }}- - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -45,10 +45,9 @@ jobs: coverage: pcov - name: Install Composer dependencies - uses: ramsey/composer-install@v3 - with: - dependency-versions: ${{ matrix.dependencies }} - composer-options: --no-ansi --no-cache --no-interaction --no-scripts --no-progress --prefer-dist + run: | + composer install -q --no-ansi --no-cache --no-interaction --no-scripts --no-progress --prefer-dist + composer update --${{ matrix.dependency }} --no-interaction --prefer-dist --no-progress --no-suggest - name: Setup Node.js uses: actions/setup-node@v4