Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ on:
- cron: '0 6 * * *'

env:
DRUPAL_TESTING_TEST_CODING_STYLES: false
DRUPAL_TESTING_DATABASE_USER: root
DRUPAL_TESTING_DATABASE_PASSWORD: root
DRUPAL_TESTING_DATABASE_ENGINE: mysql
DRUPAL_TESTING_TEST_CODING_STYLES: false
DRUPAL_TESTING_DATABASE_USER: root
DRUPAL_TESTING_DATABASE_PASSWORD: root
DRUPAL_TESTING_DATABASE_ENGINE: mysql
DRUPAL_TESTING_HTTP_PORT: 8888
DRUPAL_TESTING_PARALLEL_TESTING: true

jobs:
build:
Expand All @@ -22,16 +24,16 @@ jobs:
strategy:
matrix:
THEME: ['stark', 'seven', 'thunder_admin', 'claro', 'gin']
DRUPAL_TESTING_DRUPAL_VERSION: ['~9.4.0']
PHP: ['8.1']
DRUPAL_TESTING_DRUPAL_VERSION: ['~9.4.0', '~9.5.0']
PHP_VERSION: ['8.1']

steps:
- uses: actions/checkout@v1

- uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.PHP }}
php-version: ${{ matrix.PHP_VERSION }}
extensions: Imagick, gd, pdo_mysql

- name: Start MySql service
Expand Down Expand Up @@ -68,7 +70,15 @@ jobs:
env:
DRUPAL_TESTING_TEST_DEPRECATION: false

- name: Start webserver and run the tests
- name: Setup Apache
uses: thunder/apache-shiva-php-action@v1
with:
php-version: ${{ matrix.PHP_VERSION }}
site-directory: /tmp/test/paragraphs_features/install/web
http-port: ${{ env.DRUPAL_TESTING_HTTP_PORT }}

- name: Run the tests
run: test-drupal-project
env:
THEME: ${{ matrix.THEME }}
DRUPAL_TESTING_SELENIUM_CHROME_VERSION: '105.0'
2 changes: 1 addition & 1 deletion js/plugins/splittext/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
}

// After ajax response correct values should be placed in text editors.
$(document).once('ajax-paragraph').ajaxComplete(onAjaxSplit);
$(document).once('ajax-paragraph').ajaxComplete((...args) => setTimeout(() => onAjaxSplit(...args)));

createNewParagraphOverModal(editor);
};
Expand Down