- Timestamp:
- 08/23/2022 01:07:17 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/phpunit-tests.yml
r53895 r53922 35 35 # Runs the PHPUnit tests for WordPress. 36 36 # 37 # Note: Steps running tests for PHP 8.1 jobs are allowed to "continue-on-error".38 # This prevents workflow runs from being marked as "failed" when only PHP 8.1 fails.37 # Note: Steps running tests on PHP 8.1 + 8.2 are allowed to "continue-on-error" (for now). 38 # This prevents workflow runs from being marked as "failed" when only PHP 8.1/8.2 fails. 39 39 # 40 40 # Performs the following steps: … … 65 65 fail-fast: false 66 66 matrix: 67 php: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]67 php: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] 68 68 os: [ ubuntu-latest ] 69 69 memcached: [ false ] … … 144 144 145 145 # Install using `composer update` as there is no `composer.lock` file. 146 if [ ${{ env.LOCAL_PHP }} == '8. 1-fpm' ]; then147 docker-compose run --rm php composer update --ignore-platform-req s146 if [ ${{ env.LOCAL_PHP }} == '8.2-fpm' ]; then 147 docker-compose run --rm php composer update --ignore-platform-req=php+ 148 148 else 149 149 docker-compose run --rm php composer update … … 195 195 - name: Run PHPUnit tests 196 196 if: ${{ matrix.php >= '7.0' }} 197 continue-on-error: ${{ matrix.php == '8.1' }}197 continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }} 198 198 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} 199 199 200 200 - name: Run AJAX tests 201 201 if: ${{ ! matrix.split_slow }} 202 continue-on-error: ${{ matrix.php == '8.1' }}202 continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }} 203 203 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax 204 204 205 205 - name: Run ms-files tests as a multisite install 206 206 if: ${{ matrix.multisite && ! matrix.split_slow }} 207 continue-on-error: ${{ matrix.php == '8.1' }}207 continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }} 208 208 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c tests/phpunit/multisite.xml --group ms-files 209 209 210 210 - name: Run external HTTP tests 211 211 if: ${{ ! matrix.multisite && ! matrix.split_slow }} 212 continue-on-error: ${{ matrix.php == '8.1' }}212 continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }} 213 213 run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group external-http 214 214 215 215 # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist. 216 - name: Run ( xDebug) tests217 if: ${{ ! matrix.split_slow }}216 - name: Run (Xdebug) tests 217 if: ${{ ! matrix.split_slow && matrix.php != '8.2' }} 218 218 continue-on-error: ${{ matrix.php == '8.1' }} 219 219 run: LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__
Note: See TracChangeset
for help on using the changeset viewer.