From 6b2b42fe1f0e0b52821a025a195bf8a7833b309d Mon Sep 17 00:00:00 2001 From: Chauncey McAskill Date: Tue, 6 Aug 2024 12:37:10 -0400 Subject: [PATCH] Fix installation of PHP dependencies in GitHub Actions Ensure platform requirement (PHP) is checked to ensure the appropriate dependencies are installed. For example, ignoring that the platform is PHP 8.0 would install a version of symfony/console that expectes PHP 8.1. --- .github/workflows/continuous-integration.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index dc0b7f6..8ed94b5 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -64,21 +64,12 @@ jobs: max_attempts: 5 command: composer require "vlucas/phpdotenv:${{ matrix.phpdotenv-version }}" --no-update --no-interaction - - name: Install PHP 7 dependencies + - name: Install PHP dependencies uses: nick-invision/retry@v1 with: timeout_minutes: 5 max_attempts: 5 command: composer update --prefer-dist --no-interaction --no-progress - if: "matrix.php-version < 8" - - - name: Install PHP 8 dependencies - uses: nick-invision/retry@v1 - with: - timeout_minutes: 5 - max_attempts: 5 - command: composer update --prefer-dist --no-interaction --no-progress --ignore-platform-req=php - if: "matrix.php-version >= 8" - name: "Run PHP_CodeSniffer" run: "composer cs-check"