Skip to content

Workflow file for this run

name: MySql via mysqli test
on:
push:
branches: [ master ]
schedule:
- cron: "0 6 * * 2"
env:
DRUDBAL_DRUPAL_VERSION: "11.x"
DRUDBAL_DRUPAL_PROFILE: "standard"
SIMPLETEST_BASE_URL: "http://localhost:8080"
PHPUNIT_SKIP_CLASS: '[
"Drupal\\KernelTests\\Core\\Cache\\ApcuBackendTest",
"Drupal\\Tests\\file\\Functional\\FileAddPermissionsUpdateTest",
"Drupal\\Tests\\system\\Functional\\Update\\SqlContentEntityStorageRevisionDataCleanupTest"
]'
jobs:
#################################
mysql-mysqli:
name: "MySql with mysqli"
runs-on: ubuntu-latest
env:
DRUDBAL_ENV: "dbal/mysqli"
DBAL_URL: "mysqli://root:@0.0.0.0:3306/drudbal"
SIMPLETEST_DB: "dbal://root:@0.0.0.0:3306/drudbal?module=drudbal&dbal_driver=mysqli"
strategy:
fail-fast: false
matrix:
php-version:
- "8.2"
test-args:
- "--group Database"
- "-v --group Cache"
- "-v --group Config"
- "-v --group Entity"
# - "-v --group Installer"
services:
mysql:
image: "mysql:5.7"
options: >-
-e MYSQL_ALLOW_EMPTY_PASSWORD=yes
-e MYSQL_DATABASE=drudbal
ports:
- "3306:3306"
steps:
- name: Install PHP
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "none"
extensions: "mysqli"
ini-values: "zend.assertions=1"
- name: Checkout Drupal
run: git clone --depth=5 --branch=$DRUDBAL_DRUPAL_VERSION http://git.drupal.org/project/drupal.git .
- name: Checkout DruDbal
uses: actions/checkout@v3
with:
path: drudbal_staging
- name: Patch Drupal
run: ./drudbal_staging/tests/github/drupal_patch.sh
- name: Install Composer dependencies
run: |
composer install --no-progress --ansi
composer config --no-plugins allow-plugins.composer/package-versions-deprecated true
- name: Composer require DruDbal from local staging
run: |
git -C drudbal_staging checkout -b test-run-branch
composer config repositories.test-run '{"type": "path", "url": "drudbal_staging", "options": {"symlink": false}}'
composer require "mondrake/drudbal:dev-test-run-branch" --no-progress --ansi
- name: Install Drupal
run: |
cp modules/contrib/drudbal/tests/github/install_* .
vendor/bin/drush site-install standard --db-url=$SIMPLETEST_DB -y
vendor/bin/drush runserver localhost:8080 --default-server=localhost:8080 &
sleep 1s
- name: Report installation
run: |
php install_report.php
vendor/bin/drush core:status
vendor/bin/drush core:requirements
vendor/bin/drush pml --type=module --no-core
- name: Run test ${{ matrix.test-args }}
run: vendor/bin/phpunit -c core --color=always ${{ matrix.test-args }}