From bf43e4658b0e8177857ad557aedc8dc8b31a153d Mon Sep 17 00:00:00 2001 From: Eirik Stanghelle Morland Date: Sun, 29 Dec 2024 15:11:06 +0100 Subject: [PATCH] Add drush 13, Drupal 11 and PHP >= 8.3 to test matrix (#18) * Newer versions in matrix * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Create test-schema.json-excluded11 * Create test-schema.json11 * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml * Update test.yml --- .github/workflows/test.yml | 40 ++++++++++- tests/assets/test-schema.json-excluded11 | 87 ++++++++++++++++++++++ tests/assets/test-schema.json11 | 92 ++++++++++++++++++++++++ 3 files changed, 218 insertions(+), 1 deletion(-) create mode 100644 tests/assets/test-schema.json-excluded11 create mode 100644 tests/assets/test-schema.json11 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7f81c9..e3097ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,7 @@ on: jobs: test: name: Run tests - runs-on: 'ubuntu-20.04' + runs-on: 'ubuntu-latest' env: SCHEMA_PATH: /tmp strategy: @@ -17,26 +17,57 @@ jobs: - "8.0" - "8.1" - "8.2" + - "8.3" + - "8.4" drupal-version: - "9" - "10" + - "11" drush-version: - "10" - "11" - "12" + - "13" exclude: - php-version: 8.2 drupal-version: 9 + - php-version: 8.3 + drupal-version: 9 + - php-version: 8.4 + drupal-version: 9 - drush-version: 10 drupal-version: 10 + - drush-version: 10 + drupal-version: 11 - drupal-version: 10 php-version: 7.4 - drupal-version: 10 php-version: 8.0 - drush-version: 12 drupal-version: 9 + - drush-version: 13 + php-version: 7.4 + - drush-version: 13 + php-version: 8.0 + - drush-version: 13 + php-version: 8.1 + - php-version: 8.2 + drupal-version: 11 + - php-version: 8.1 + drupal-version: 11 + - php-version: 8.0 + drupal-version: 11 + - php-version: 7.4 + drupal-version: 11 + - php-version: 7.3 + drupal-version: 11 - drush-version: 11 drupal-version: 10 + - drush-version: 11 + drupal-version: 11 + - drush-version: 12 + drupal-version: 11 + steps: - name: Dump matrix context env: @@ -67,7 +98,13 @@ jobs: - name: install drupal if: ${{ matrix.drupal-version == '10' }} run: | + cd .. && composer create-project --no-plugins drupal/recommended-project:10.2.12 test-project --no-interaction + - name: install drupal + if: ${{ matrix.drupal-version == '11' }} + run: | + cd .. && composer create-project --no-plugins drupal/recommended-project:11.1.0 test-project --no-interaction + - name: install Drush run: | cd ../test-project @@ -75,6 +112,7 @@ jobs: composer config --no-plugins allow-plugins.composer/installers true composer config --no-plugins allow-plugins.drupal/core-composer-scaffold true composer require drush/drush:^${{ matrix.drush-version }} + - name: run tests env: DRUPAL_VERSION: ${{ matrix.drupal-version }} diff --git a/tests/assets/test-schema.json-excluded11 b/tests/assets/test-schema.json-excluded11 new file mode 100644 index 0000000..ab599ab --- /dev/null +++ b/tests/assets/test-schema.json-excluded11 @@ -0,0 +1,87 @@ +[ + { + "type": "schema", + "module": "block", + "value": "8003" + }, + { + "type": "schema", + "module": "dynamic_page_cache", + "value": "8000" + }, + { + "type": "schema", + "module": "field", + "value": "8500" + }, + { + "type": "schema", + "module": "filter", + "value": "8000" + }, + { + "type": "schema", + "module": "minimal", + "value": "8000" + }, + { + "type": "schema", + "module": "node", + "value": "8700" + }, + { + "type": "schema", + "module": "page_cache", + "value": "8000" + }, + { + "type": "schema", + "module": "path_alias", + "value": "8000" + }, + { + "type": "schema", + "module": "sqlite", + "value": "8000" + }, + { + "type": "schema", + "module": "system", + "value": "11102" + }, + { + "type": "schema", + "module": "text", + "value": "8000" + }, + { + "type": "schema", + "module": "update", + "value": "8001" + }, + { + "type": "schema", + "module": "user", + "value": "10000" + }, + { + "type": "post_update", + "module": "", + "value": "block_post_update_make_weight_integer" + }, + { + "type": "post_update", + "module": "", + "value": "path_alias_post_update_update_path_alias_revision_indexes" + }, + { + "type": "post_update", + "module": "", + "value": "system_post_update_convert_empty_country_and_timezone_settings_to_null" + }, + { + "type": "post_update", + "module": "", + "value": "system_post_update_sdc_uninstall" + } +] diff --git a/tests/assets/test-schema.json11 b/tests/assets/test-schema.json11 new file mode 100644 index 0000000..8d325a1 --- /dev/null +++ b/tests/assets/test-schema.json11 @@ -0,0 +1,92 @@ +[ + { + "type": "schema", + "module": "block", + "value": "8003" + }, + { + "type": "schema", + "module": "dblog", + "value": "10101" + }, + { + "type": "schema", + "module": "dynamic_page_cache", + "value": "8000" + }, + { + "type": "schema", + "module": "field", + "value": "8500" + }, + { + "type": "schema", + "module": "filter", + "value": "8000" + }, + { + "type": "schema", + "module": "minimal", + "value": "8000" + }, + { + "type": "schema", + "module": "node", + "value": "8700" + }, + { + "type": "schema", + "module": "page_cache", + "value": "8000" + }, + { + "type": "schema", + "module": "path_alias", + "value": "8000" + }, + { + "type": "schema", + "module": "sqlite", + "value": "8000" + }, + { + "type": "schema", + "module": "system", + "value": "11102" + }, + { + "type": "schema", + "module": "text", + "value": "8000" + }, + { + "type": "schema", + "module": "update", + "value": "8001" + }, + { + "type": "schema", + "module": "user", + "value": "10000" + }, + { + "type": "post_update", + "module": "", + "value": "block_post_update_make_weight_integer" + }, + { + "type": "post_update", + "module": "", + "value": "path_alias_post_update_update_path_alias_revision_indexes" + }, + { + "type": "post_update", + "module": "", + "value": "system_post_update_convert_empty_country_and_timezone_settings_to_null" + }, + { + "type": "post_update", + "module": "", + "value": "system_post_update_sdc_uninstall" + } +]