Skip to content

Commit 649083d

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Add wordpress to community build
2 parents bab9e34 + 8d37a65 commit 649083d

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
@@ -377,6 +377,22 @@ jobs:
377377
git rev-parse HEAD
378378
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
379379
php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
380+
- name: Test Wordpress
381+
if: always()
382+
run: |
383+
git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1
384+
cd wordpress
385+
git rev-parse HEAD
386+
export ASAN_OPTIONS=exitcode=139
387+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
388+
cp wp-tests-config-sample.php wp-tests-config.php
389+
sed -i 's/youremptytestdbnamehere/test/g' wp-tests-config.php
390+
sed -i 's/yourusernamehere/root/g' wp-tests-config.php
391+
sed -i 's/yourpasswordhere/root/g' wp-tests-config.php
392+
php vendor/bin/phpunit || EXIT_CODE=$?
393+
if [ $EXIT_CODE -gt 128 ]; then
394+
exit 1
395+
fi
380396
OPCACHE_VARIATION:
381397
needs: GENERATE_MATRIX
382398
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}

0 commit comments

Comments
 (0)