Skip to content

Commit 29c1465

Browse files
committed
Add Drupal to community build
run kernel and unit tests for pdo_sqlite and pdo_mysql
1 parent 490b808 commit 29c1465

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,26 @@ jobs:
502502
uses: ./.github/actions/notify-slack
503503
with:
504504
token: ${{ secrets.ACTION_MONITORING_SLACK }}
505+
- name: Test Drupal
506+
if: always()
507+
run: |
508+
php -i|grep memory_limit
509+
echo memory_limit=256M > /etc/php.d/drupal.ini
510+
git clone https://git.drupalcode.org/project/drupal.git drupal --depth=1
511+
cd drupal
512+
git rev-parse HEAD
513+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
514+
export ASAN_OPTIONS=exitcode=139
515+
export SIMPLETEST_BASE_URL=http://localhost:8888/
516+
export SIMPLETEST_DB=sqlite://localhost/db/sqlite1
517+
mkdir db
518+
rm -f core/tests/Drupal/FunctionalTests/ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest.php
519+
export DRUPAL_TYPES=Annotation,Assertion,ClassFinder,Drupal,Extension,File,Plugin,Render,tar,zip
520+
php -dzend.assertions=1 vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite unit,kernel --group $DRUPAL_TYPES || exit 1
521+
php -dzend.assertions=1 vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite unit,kernel --group Database || exit 1
522+
export SIMPLETEST_DB=mysql://root:root@localhost/test
523+
php -dzend.assertions=1 vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite unit,kernel --group Database || EXIT_CODE=1
524+
[ ${EXIT_CODE:-0} -gt 128 ] && exit 1 || exit 0
505525
OPCACHE_VARIATION:
506526
needs: GENERATE_MATRIX
507527
if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }}

0 commit comments

Comments
 (0)