diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7dcf4f41b4..46c745d0c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -110,7 +110,7 @@ jobs: tools: cs2pr # This action also handles the caching of the dependencies. - - name: Set up node and enable caching of dependencies + - name: Set up node uses: actions/setup-node@v4 with: node-version: '20' @@ -125,18 +125,9 @@ jobs: # Install dependencies and handle caching in one go. # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer - name: Install Composer dependencies - if: ${{ matrix.php != '8.4' }} uses: "ramsey/composer-install@v2" with: - # Bust the cache at least once a month - output format: YYYY-MM. - custom-cache-suffix: $(date -u "+%Y-%m") - - # For PHP "nightly", we install with ignore platform reqs. - - name: Install Composer dependencies - with ignore platform - if: ${{ matrix.php == '8.4' }} - uses: "ramsey/composer-install@v2" - with: - composer-options: --ignore-platform-req=php + composer-options: ${{ matrix.php == '8.4' && '--ignore-platform-req=php' || '' }} custom-cache-suffix: $(date -u "+%Y-%m") # Note: The code style check is run multiple times against every PHP version @@ -161,6 +152,7 @@ jobs: run: cs2pr ./phpcs-report.xml - name: Download the PHPCS phar + if: ${{ matrix.custom_ini == false }} uses: actions/download-artifact@v3 with: name: phpcs-phar