Skip to content

Commit 0c7e48a

Browse files
authored
Drop Drupal 8 from testing workflows (#623)
* First stab * Replaced/Removed some more mentions of drupal/*:^8 * Drop symfony/*:^3 support * Raised lowest version of phpunit/phpunit to ^8.5 * Drop drush/drush:^9.6 support and add ^12
1 parent c6c3d04 commit 0c7e48a

File tree

3 files changed

+10
-17
lines changed

3 files changed

+10
-17
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ commands:
3131
parameters:
3232
project:
3333
type: string
34-
default: 'drupal/recommended-project:^8.8@alpha'
34+
default: 'drupal/recommended-project:^9.0@alpha'
3535
steps:
3636
- run: composer create-project << parameters.project >> /tmp/drupal --no-interaction --prefer-dist --ignore-platform-reqs
3737
- run: composer require zaporylie/composer-drupal-optimizations:^1.1 --dev --working-dir=/tmp/drupal
@@ -41,7 +41,7 @@ commands:
4141
name: Add as local
4242
command: |
4343
cd /tmp/drupal
44-
composer require --dev drupal/core-dev:^8.8
44+
composer require --dev drupal/core-dev:^9.0
4545
composer config repositories.1 '{"type": "path", "url": "'${CIRCLE_WORKING_DIRECTORY}'", "options": { "symlink": false }}'
4646
composer require --dev mglaman/phpstan-drupal "*" phpstan/extension-installer
4747
cat composer.json
@@ -70,7 +70,7 @@ jobs:
7070
steps:
7171
- start-project
7272
- create-drupal-project:
73-
project: 'drupal/legacy-project:^8.8'
73+
project: 'drupal/legacy-project:^9.0'
7474
- local-require
7575
- run:
7676
name: Run against a file
@@ -103,7 +103,7 @@ jobs:
103103
steps:
104104
- start-project
105105
- create-drupal-project:
106-
project: 'drupal/legacy-project:^8@alpha'
106+
project: 'drupal/legacy-project:^9@alpha'
107107
- local-require
108108
# Composer constraints prevent requiring via compser, but this helps test drupalci's phpstan build step as well.
109109
- run:

.github/workflows/php.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ jobs:
4343
php-version:
4444
- "7.4"
4545
drupal:
46-
- "^8.9"
4746
- "^9.0"
4847
include:
4948
- php-version: "8.0"
@@ -65,15 +64,11 @@ jobs:
6564
php-version: "${{ matrix.php-version }}"
6665
tools: composer:v2
6766
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, gd
68-
- name: "Downgrade dev dependencies"
69-
run: "composer require phpunit/phpunit:6.5.14 drush/drush:~9 drupal/core-recommended:${{ matrix.drupal }} drupal/core-dev:${{ matrix.drupal }} --with-all-dependencies --dev --no-update"
70-
if: ${{ matrix.drupal == '^8.9' }}
7167
- name: "Upgrade to drupal/core:${{ matrix.drupal }}"
7268
run: "composer require drupal/core-recommended:${{ matrix.drupal }} --with-all-dependencies --dev --no-update"
7369
if: ${{ matrix.drupal == '^10.0' || matrix.drupal == '11.x-dev' }}
7470
- name: "Add phpspec/prophecy-phpunit"
7571
run: "composer require phpspec/prophecy-phpunit:^2 --dev --no-update"
76-
if: ${{ matrix.drupal != '^8.9' }}
7772
- name: "Install dependencies"
7873
uses: "ramsey/composer-install@v2"
7974
- name: "PHPUnit"
@@ -92,7 +87,6 @@ jobs:
9287
php-version:
9388
- "7.4"
9489
drupal:
95-
- "^8.9"
9690
- "^9.0"
9791
include:
9892
- php-version: "8.0"
@@ -168,7 +162,6 @@ jobs:
168162
php-version:
169163
- "7.4"
170164
drupal:
171-
- "^8.9"
172165
- "^9.0"
173166
include:
174167
- php-version: "8.1"

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111
],
1212
"require": {
1313
"php": "^7.4 || ^8.0",
14-
"symfony/finder": "~3.4.5 ||^4.2 || ^5.0 || ^6.0",
14+
"symfony/finder": "^4.2 || ^5.0 || ^6.0",
1515
"phpstan/phpstan": "^1.10.1",
1616
"phpstan/phpstan-deprecation-rules": "^1.1.4",
17-
"symfony/yaml": "~3.4.5 || ^4.2|| ^5.0 || ^6.0",
17+
"symfony/yaml": "^4.2|| ^5.0 || ^6.0",
1818
"webflo/drupal-finder": "^1.2"
1919
},
2020
"require-dev": {
2121
"behat/mink": "^1.8",
2222
"composer/installers": "^1.9",
23-
"drupal/core-recommended": "^8.8@alpha || ^9.0",
24-
"drush/drush": "^9.6 || ^10.0 || ^11",
23+
"drupal/core-recommended": "^9.0",
24+
"drush/drush": "^10.0 || ^11 || ^12",
2525
"phpstan/extension-installer": "^1.1",
2626
"phpstan/phpstan-strict-rules": "^1.0",
27-
"phpunit/phpunit": "^6.5 || ^7.5 || ^8.0 || ^9",
27+
"phpunit/phpunit": "^8.5 || ^9",
2828
"slevomat/coding-standard": "^7.1",
2929
"squizlabs/php_codesniffer": "^3.3",
30-
"symfony/phpunit-bridge": "^3.4.3 || ^4.4 || ^5.4 || ^6.0"
30+
"symfony/phpunit-bridge": "^4.4 || ^5.4 || ^6.0"
3131
},
3232
"minimum-stability": "dev",
3333
"prefer-stable": true,

0 commit comments

Comments
 (0)