mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Build/Test Tools: Do not allow tests to fail for select PHP 8.1 test runs.
This affects the following test groups: * Ajax tests * ms-files tests * External HTTP tests * Xdebug tests The tests being run in these particular test groups are passing on PHP 8.1, however, the test runs are still allowed to “continue on error”. This creates the risk that new PHP 8.1 incompatibilities will be introduced without anyone noticing. By no longer allowing these test runs to “continue on error”, that risk is removed. Follow-up to [51588], [51604], [53922]. Props jrf. See #55656, #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@54072 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a4ec93f438
commit
10f6d876c9
7
.github/workflows/phpunit-tests.yml
vendored
7
.github/workflows/phpunit-tests.yml
vendored
@ -199,23 +199,22 @@ jobs:
|
||||
|
||||
- name: Run AJAX tests
|
||||
if: ${{ ! matrix.split_slow }}
|
||||
continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }}
|
||||
continue-on-error: ${{ matrix.php == '8.2' }}
|
||||
run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax
|
||||
|
||||
- name: Run ms-files tests as a multisite install
|
||||
if: ${{ matrix.multisite && ! matrix.split_slow }}
|
||||
continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }}
|
||||
continue-on-error: ${{ matrix.php == '8.2' }}
|
||||
run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c tests/phpunit/multisite.xml --group ms-files
|
||||
|
||||
- name: Run external HTTP tests
|
||||
if: ${{ ! matrix.multisite && ! matrix.split_slow }}
|
||||
continue-on-error: ${{ matrix.php == '8.1' || matrix.php == '8.2' }}
|
||||
continue-on-error: ${{ matrix.php == '8.2' }}
|
||||
run: node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group external-http
|
||||
|
||||
# __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist.
|
||||
- name: Run (Xdebug) tests
|
||||
if: ${{ ! matrix.split_slow && matrix.php != '8.2' }}
|
||||
continue-on-error: ${{ matrix.php == '8.1' }}
|
||||
run: LOCAL_PHP_XDEBUG=true node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit -v --group xdebug --exclude-group __fakegroup__
|
||||
|
||||
- name: Ensure version-controlled files are not modified or deleted
|
||||
|
||||
Loading…
Reference in New Issue
Block a user