Skip to content

Commit dc904a6

Browse files
committed
Add Drupal to community build
run kernel and unit tests for pdo_sqlite and pdo_mysql
1 parent dc7f6a8 commit dc904a6

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/test-suite.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,31 @@ jobs:
615615
if [ $EXIT_CODE -gt 128 ]; then
616616
exit 1
617617
fi
618+
- name: Notify Slack
619+
if: failure()
620+
uses: ./.github/actions/notify-slack
621+
with:
622+
token: ${{ secrets.ACTION_MONITORING_SLACK }}
623+
- name: Test Drupal
624+
if: always()
625+
run: |
626+
php -i|grep memory_limit
627+
echo memory_limit=256M > /etc/php.d/drupal.ini
628+
git clone https://git.drupalcode.org/project/drupal.git drupal --depth=1
629+
cd drupal
630+
git rev-parse HEAD
631+
php /usr/bin/composer install --no-progress --ignore-platform-reqs
632+
export ASAN_OPTIONS=exitcode=139
633+
export SIMPLETEST_BASE_URL=http://localhost:8888/
634+
export SIMPLETEST_DB=sqlite://localhost/db/sqlite1
635+
mkdir db
636+
rm -f core/tests/Drupal/FunctionalTests/ExistingDrupal8StyleDatabaseConnectionInSettingsPhpTest.php
637+
export DRUPAL_TYPES=Annotation,Assertion,ClassFinder,Drupal,Extension,File,Plugin,Render,tar,zip
638+
php -dzend.assertions=1 vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite unit,kernel --group $DRUPAL_TYPES || exit 1
639+
php -dzend.assertions=1 vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite unit,kernel --group Database || exit 1
640+
export SIMPLETEST_DB=mysql://root:root@localhost/test
641+
php -dzend.assertions=1 vendor/bin/phpunit -c core/phpunit.xml.dist --testsuite unit,kernel --group Database || EXIT_CODE=1
642+
[ ${EXIT_CODE:-0} -gt 128 ] && exit 1 || exit 0
618643
OPCACHE_VARIATION:
619644
if: ${{ fromJson(inputs.branch).jobs.OPCACHE_VARIATION }}
620645
services:

0 commit comments

Comments
 (0)