|
|
|
@ -19,96 +19,19 @@ jobs:
|
|
|
|
|
build: |
|
|
|
|
# The type of runner that the job will run on |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
continue-on-error: ${{ matrix.allowed_failure }} |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
|
php-versions: ["7.3", "7.4"] |
|
|
|
|
# PHP 8.1 fails - see https://github.com/Islandora/islandora/issues/887 |
|
|
|
|
php-versions: ["7.4", "8.0"] |
|
|
|
|
# test-suite functional-javascript will appear to pass but will skip tests; missing chromedriver. |
|
|
|
|
test-suite: ["kernel", "functional", "functional-javascript"] |
|
|
|
|
drupal-version: ["9.3.x", "9.4.x-dev"] |
|
|
|
|
# Not yet Drupal 10 ready - see https://github.com/Islandora/islandora/issues/888 |
|
|
|
|
drupal-version: ["9.3.x", "9.4.x", "9.5.x-dev"] |
|
|
|
|
mysql: ["8.0"] |
|
|
|
|
allowed_failure: [false] |
|
|
|
|
mysql: ["5.7"] |
|
|
|
|
# include experimental parts |
|
|
|
|
include: |
|
|
|
|
# 9.3.x on PHP 8.0 |
|
|
|
|
- drupal-version: '9.3.x' |
|
|
|
|
php-versions: '8.0' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "kernel" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '9.3.x' |
|
|
|
|
php-versions: '8.0' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '9.3.x' |
|
|
|
|
php-versions: '8.0' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional-javascript" |
|
|
|
|
allowed_failure: true |
|
|
|
|
# 9.3.x on PHP 8.1 |
|
|
|
|
- drupal-version: '9.3.x' |
|
|
|
|
php-versions: '8.1' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "kernel" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '9.3.x' |
|
|
|
|
php-versions: '8.1' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '9.3.x' |
|
|
|
|
php-versions: '8.1' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional-javascript" |
|
|
|
|
allowed_failure: true |
|
|
|
|
# 9.4.x-dev on PHP "8.0" |
|
|
|
|
- drupal-version: '9.4.x-dev' |
|
|
|
|
php-versions: '8.0' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "kernel" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '9.4.x-dev' |
|
|
|
|
php-versions: '8.0' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '9.4.x-dev' |
|
|
|
|
php-versions: '8.0' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional-javascript" |
|
|
|
|
allowed_failure: true |
|
|
|
|
# 9.4.x-dev on PHP 8.1 |
|
|
|
|
- drupal-version: '9.4.x-dev' |
|
|
|
|
php-versions: '8.1' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "kernel" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '9.4.x-dev' |
|
|
|
|
php-versions: '8.1' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '9.4.x-dev' |
|
|
|
|
php-versions: '8.1' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional-javascript" |
|
|
|
|
allowed_failure: true |
|
|
|
|
# 10.0.x-dev on PHP 8.1 |
|
|
|
|
- drupal-version: '10.0.x-dev' |
|
|
|
|
php-versions: '8.1' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "kernel" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '10.0.x-dev' |
|
|
|
|
php-versions: '8.1' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional" |
|
|
|
|
allowed_failure: true |
|
|
|
|
- drupal-version: '10.0.x-dev' |
|
|
|
|
php-versions: '8.1' |
|
|
|
|
mysql: "8.0" |
|
|
|
|
test-suite: "functional-javascript" |
|
|
|
|
allowed_failure: true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
name: PHP ${{ matrix.php-versions }} | drupal ${{ matrix.drupal-version }} | mysql ${{ matrix.mysql }} | test-suite ${{ matrix.test-suite }} |
|
|
|
|
|
|
|
|
@ -175,7 +98,6 @@ jobs:
|
|
|
|
|
cd $DRUPAL_DIR |
|
|
|
|
chmod -R u+w web/sites/default |
|
|
|
|
mkdir -p web/sites/simpletest/browser_output |
|
|
|
|
continue-on-error: ${{ matrix.allowed_failure }} |
|
|
|
|
|
|
|
|
|
- name: Setup composer paths |
|
|
|
|
run: | |
|
|
|
@ -190,18 +112,15 @@ jobs:
|
|
|
|
|
cd $DRUPAL_DIR/web |
|
|
|
|
drush --uri=127.0.0.1:8282 en -y islandora_audio islandora_breadcrumbs islandora_iiif islandora_image islandora_video islandora_text_extraction_defaults |
|
|
|
|
drush --uri=127.0.0.1:8282 fim -y islandora_core_feature,islandora_text_extraction_defaults |
|
|
|
|
continue-on-error: ${{ matrix.allowed_failure }} |
|
|
|
|
|
|
|
|
|
- name: Copy PHPunit file |
|
|
|
|
run: cp $PHPUNIT_FILE $DRUPAL_DIR/web/core/phpunit.xml |
|
|
|
|
|
|
|
|
|
- name: Test scripts |
|
|
|
|
run: $SCRIPT_DIR/travis_scripts.sh |
|
|
|
|
continue-on-error: ${{ matrix.allowed_failure }} |
|
|
|
|
|
|
|
|
|
- name: PHPUNIT tests |
|
|
|
|
run: | |
|
|
|
|
cd $DRUPAL_DIR/web/core |
|
|
|
|
$DRUPAL_DIR/vendor/bin/phpunit --verbose --testsuite "${{ matrix.test-suite }}" |
|
|
|
|
continue-on-error: ${{ matrix.allowed_failure }} |
|
|
|
|
|
|
|
|
|