Skip to content

Commit 8d37a65

Browse files
committed
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: Add wordpress to community build
2 parents 65782fb + c53b065 commit 8d37a65

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,22 @@ jobs:
375375
git rev-parse HEAD
376376
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
377377
php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
378+
- name: Test Wordpress
379+
if: always()
380+
run: |
381+
git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1
382+
cd wordpress
383+
git rev-parse HEAD
384+
export ASAN_OPTIONS=exitcode=139
385+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
386+
cp wp-tests-config-sample.php wp-tests-config.php
387+
sed -i 's/youremptytestdbnamehere/test/g' wp-tests-config.php
388+
sed -i 's/yourusernamehere/root/g' wp-tests-config.php
389+
sed -i 's/yourpasswordhere/root/g' wp-tests-config.php
390+
php vendor/bin/phpunit || EXIT_CODE=$?
391+
if [ $EXIT_CODE -gt 128 ]; then
392+
exit 1
393+
fi
378394
OPCACHE_VARIATION:
379395
needs: GENERATE_MATRIX
380396
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}

0 commit comments

Comments
 (0)