Skip to content

Commit fa3903e

Browse files
authored
Merge pull request #21 from antistatique/2-0-x/support-drupal-95
2 parents 004b6a3 + 58fdeec commit fa3903e

File tree

6 files changed

+56
-21
lines changed

6 files changed

+56
-21
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
drupal_version: ['8.8', '8.9', '9.0', '9.1', '9.2']
15+
drupal_version: ['9.0', '9.1', '9.2', '9.3', '9.4', '9.5']
1616
module: ['nbsp']
1717
experimental: [ false ]
1818
include:
19-
- drupal_version: '9.3'
19+
- drupal_version: '9.5'
2020
module: 'nbsp'
2121
experimental: true
2222

@@ -43,16 +43,16 @@ jobs:
4343

4444
strategy:
4545
matrix:
46-
drupal_version: ['8.8', '8.9', '9.0', '9.1', '9.2']
46+
drupal_version: ['9.0', '9.1', '9.2', '9.3', '9.4', '9.5']
4747
module: [ 'nbsp' ]
4848
experimental: [ false ]
4949
include:
50-
- drupal_version: '9.3'
50+
- drupal_version: '9.5'
5151
module: 'nbsp'
5252
experimental: true
5353

5454
steps:
55-
- uses: actions/checkout@v1
55+
- uses: actions/checkout@v3
5656
- run: docker-compose -f docker-compose.yml pull --include-deps drupal
5757
- name: Build the docker-compose stack
5858
run: docker-compose -f docker-compose.yml build --pull --build-arg BASE_IMAGE_TAG=${{ matrix.drupal_version }} drupal
@@ -72,3 +72,33 @@ jobs:
7272
run: docker-compose -f docker-compose.yml exec -T -u www-data drupal phpunit --no-coverage --group=${{ matrix.module }}_functional --configuration=/var/www/html/phpunit.xml --fail-on-risky
7373
continue-on-error: ${{ matrix.experimental }}
7474

75+
upgrade-status:
76+
name: Upgrade Status
77+
runs-on: ubuntu-latest
78+
79+
strategy:
80+
matrix:
81+
drupal_version: ['9.4']
82+
module: ['nbsp']
83+
84+
steps:
85+
- uses: actions/checkout@v3
86+
- name: Set up Docker Buildx
87+
uses: docker/setup-buildx-action@v2
88+
- run: docker-compose -f docker-compose.yml pull --include-deps drupal
89+
- name: Build the docker-compose stack
90+
run: docker-compose -f docker-compose.yml build --pull --build-arg BASE_IMAGE_TAG=${{ matrix.drupal_version }} drupal
91+
- name: Up a persistent Docker Container
92+
run: docker-compose -f docker-compose.yml up -d drupal
93+
- name: Add upgrade status dependency
94+
run: docker-compose exec -T drupal wait-for-it db:3306 -- composer require --dev drupal/upgrade_status --no-interaction
95+
- name: Bootstrap Drupal
96+
run: docker-compose -f docker-compose.yml exec -T -u www-data drupal drush site-install standard --db-url="mysql://drupal:drupal@db/drupal" -y
97+
- name: Enable upgrade status
98+
run: docker-compose exec -T drupal wait-for-it db:3306 -- ./vendor/bin/drush en upgrade_status -y
99+
- name: Disable incompatible module
100+
run: docker-compose exec -T drupal wait-for-it db:3306 -- ./vendor/bin/drush pmu page_cache -y
101+
- name: Enable the module
102+
run: docker-compose exec -T drupal wait-for-it db:3306 -- ./vendor/bin/drush en ${{ matrix.module }} -y
103+
- name: Run upgrade status
104+
run: docker-compose exec -T drupal wait-for-it db:3306 -- ./vendor/bin/drush upgrade_status:analyze ${{ matrix.module }}

.github/workflows/styles.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
name: eslint
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v3
1010
- name: Install modules
1111
run: yarn
1212
- name: Run ESLint
@@ -16,7 +16,7 @@ jobs:
1616
name: prettier
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
- name: Install modules
2121
run: yarn
2222
- name: Run Prettier
@@ -29,10 +29,10 @@ jobs:
2929
- name: Setup PHP
3030
uses: shivammathur/setup-php@v2
3131
with:
32-
php-version: '7.3'
32+
php-version: '7.4'
3333
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
3434
tools: cs2pr, composer:v1
35-
- uses: actions/checkout@master
35+
- uses: actions/checkout@v3
3636
- run: composer install --prefer-dist
3737
- run: ./vendor/bin/phpcs ./ --report=checkstyle | cs2pr
3838

@@ -43,10 +43,10 @@ jobs:
4343
- name: Setup PHP
4444
uses: shivammathur/setup-php@v2
4545
with:
46-
php-version: '7.3'
46+
php-version: '7.4'
4747
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
4848
tools: cs2pr, composer:v1, phpmd
49-
- uses: actions/checkout@master
49+
- uses: actions/checkout@v3
5050
- run: composer install --prefer-dist
5151
- run: phpmd ./ text ./phpmd.xml --suffixes php,module,inc,install,test,profile,theme,css,info,txt --exclude *Test.php,*vendor/*
5252

@@ -57,18 +57,18 @@ jobs:
5757
- name: Setup PHP
5858
uses: shivammathur/setup-php@v2
5959
with:
60-
php-version: '7.3'
60+
php-version: '7.4'
6161
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv
6262
tools: cs2pr, composer:v1, phpcpd
63-
- uses: actions/checkout@master
63+
- uses: actions/checkout@v3
6464
- run: composer install --prefer-dist
6565
- run: phpcpd ./src --suffix .php --suffix .module --suffix .inc --suffix .install --suffix .test --suffix .profile --suffix .theme --suffix .css --suffix .info --suffix .txt --exclude *.md --exclude *.info.yml --exclude tests --exclude vendor/
6666

6767
phpdd:
6868
name: PhpDeprecationDetector (phpdd)
6969
runs-on: ubuntu-latest
7070
steps:
71-
- uses: actions/checkout@v1
71+
- uses: actions/checkout@v3
7272
- run: docker-compose -f docker-compose.yml pull --include-deps drupal
7373
- name: Build the docker-compose stack
7474
run: docker-compose -f docker-compose.yml build drupal

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased]
88
### Added
99
- add dependabot for GitHub Action dependency
10+
- add upgrade-status check
11+
- add coverage for Drupal 9.3, 9.4 & 9.5
1012

1113
### Changed
1214
- disable deprecation notice PHPUnit
1315
- update changelog form to follow keep-a-changelog format
16+
- drop support of drupal 8.8 & 8.9
1417

1518
### Removed
1619
- remove satackey/action-docker-layer-caching on Github Actions

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_IMAGE_TAG=8.9
1+
ARG BASE_IMAGE_TAG=9.0
22
FROM wengerk/drupal-for-contrib:${BASE_IMAGE_TAG}
33

44
# Disable deprecation notice because supporting both Drupal 8 & Drupal 9.

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ The version `8.x-1.x` is not compatible with Drupal `8.8.x`.
4040
Drupal `8.8.x` brings some breaking change with tests and so you
4141
must upgrade to `8.x-2.x` version of **NBSP**.
4242

43+
The version `8.x-3.x` is not compatible with Drupal `8.x` and will only support Drupal `9.x` Drupal `10.x`.
44+
4345
## Which version should I use?
4446

45-
|Drupal Core|NBSP |
46-
|:---------:|:----------:|
47-
|8.7.x |1.x |
48-
|8.8.x |2.x |
49-
|9.x |2.x |
47+
|Drupal Core| NBSP |
48+
|:---------:|:---------:|
49+
|8.7.x | 1.x |
50+
|8.8.x | 2.x |
51+
|9.x | 2.x - 3.x |
5052

5153
## Dependencies
5254

nbsp.info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'CKEditor Non-breaking space Plugin'
22
type: module
33
description: 'Minimal module to insert a non-breaking space into the content by pressing Ctrl+Space or using the provided button.'
4-
core_version_requirement: ^8.8 || ^9
4+
core_version_requirement: ^9
55
package: CKEditor
66

77
dependencies:

0 commit comments

Comments
 (0)