@@ -125,24 +125,14 @@ jobs:
125125
126126 # Install dependencies and handle caching in one go.
127127 # @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
128- - name : Install Composer dependencies - normal
129- if : ${{ startsWith( matrix.php, '8' ) == false }}
128+ - name : Install Composer dependencies
130129 uses : " ramsey/composer-install@v2"
131130 with :
132131 # Bust the cache at least once a month - output format: YYYY-MM.
133132 custom-cache-suffix : $(date -u "+%Y-%m")
134133
135- # PHPUnit 7.x does not allow for installation on PHP 8, so ignore platform
136- # requirements to get PHPUnit 7.x to install on nightly.
137- - name : Install Composer dependencies - with ignore platform
138- if : ${{ startsWith( matrix.php, '8' ) }}
139- uses : " ramsey/composer-install@v2"
140- with :
141- composer-options : --ignore-platform-req=php+
142- custom-cache-suffix : $(date -u "+%Y-%m")
143-
144134 - name : " Composer: downgrade PHPCS dependencies for tests (lowest)"
145- if : ${{ ! startsWith( matrix.php, '8' ) && matrix.dependencies == 'lowest' }}
135+ if : ${{ matrix.dependencies == 'lowest' }}
146136 run : >
147137 composer update --prefer-lowest --no-scripts --no-interaction
148138 squizlabs/php_codesniffer
@@ -151,16 +141,6 @@ jobs:
151141 sirbrillig/phpcs-variable-analysis
152142 wp-coding-standards/wpcs
153143
154- - name : " Composer: downgrade PHPCS dependencies for tests (lowest) - with ignore platform"
155- if : ${{ startsWith( matrix.php, '8' ) && matrix.dependencies == 'lowest' }}
156- run : >
157- composer update --prefer-lowest --no-scripts --no-interaction --ignore-platform-req=php+
158- squizlabs/php_codesniffer
159- phpcsstandards/phpcsutils
160- phpcsstandards/phpcsextra
161- sirbrillig/phpcs-variable-analysis
162- wp-coding-standards/wpcs
163-
164144 - name : Run the unit tests
165145 run : ./bin/unit-tests
166146
0 commit comments