Skip to content

Commit cdc0a8b

Browse files
committed
Add wordpress to community build
Closes phpGH-9942
1 parent db2d32f commit cdc0a8b

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
@@ -366,6 +366,22 @@ jobs:
366366
git rev-parse HEAD
367367
sed -i 's/PHP_SAPI/"cli-server"/g' var/cache/dev/App_KernelDevDebugContainer.preload.php
368368
php -d opcache.preload=var/cache/dev/App_KernelDevDebugContainer.preload.php public/index.php
369+
- name: Test Wordpress
370+
if: always()
371+
run: |
372+
git clone https://github.com/WordPress/wordpress-develop.git wordpress --depth=1
373+
cd wordpress
374+
git rev-parse HEAD
375+
export ASAN_OPTIONS=exitcode=139
376+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
377+
cp wp-tests-config-sample.php wp-tests-config.php
378+
sed -i 's/youremptytestdbnamehere/test/g' wp-tests-config.php
379+
sed -i 's/yourusernamehere/root/g' wp-tests-config.php
380+
sed -i 's/yourpasswordhere/root/g' wp-tests-config.php
381+
php vendor/bin/phpunit || EXIT_CODE=$?
382+
if [ $EXIT_CODE -gt 128 ]; then
383+
exit 1
384+
fi
369385
OPCACHE_VARIATION:
370386
needs: GENERATE_MATRIX
371387
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}

0 commit comments

Comments
 (0)