Skip to content

Commit

Permalink
Add drush 13, Drupal 11 and PHP >= 8.3 to test matrix (#18)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
eiriksm authored Dec 29, 2024
1 parent 219807a commit bf43e46
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
test:
name: Run tests
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-latest'
env:
SCHEMA_PATH: /tmp
strategy:
Expand All @@ -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:
Expand Down Expand Up @@ -67,14 +98,21 @@ 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
composer config --no-plugins allow-plugins.drupal/core-project-message true
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 }}
Expand Down
87 changes: 87 additions & 0 deletions tests/assets/test-schema.json-excluded11
Original file line number Diff line number Diff line change
@@ -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"
}
]
92 changes: 92 additions & 0 deletions tests/assets/test-schema.json11
Original file line number Diff line number Diff line change
@@ -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"
}
]

0 comments on commit bf43e46

Please sign in to comment.