Skip to content

Commit

Permalink
Merge pull request #67 from youvo/drupal11-readiness
Browse files Browse the repository at this point in the history
Upgrade to Drupal 11 and update github workflow
  • Loading branch information
simonbaese authored Dec 25, 2024
2 parents dfc576c + 538785b commit f3a1950
Show file tree
Hide file tree
Showing 70 changed files with 3,660 additions and 4,251 deletions.
2 changes: 1 addition & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: youvo
type: drupal10
type: drupal11
docroot: web
php_version: "8.3"
webserver_type: nginx-fpm
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Tests

on:
pull_request:
push:
branches:
- main

jobs:
lint:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: 8.3
- name: Validate Dependencies
run: composer validate
- name: Install Dependencies
uses: ramsey/composer-install@v3
- name: Check Coding Standards
run: vendor/bin/phpcs --report=summary
- name: Static Code Analysis
run: vendor/bin/phpstan analyze web/modules/custom

test:
name: Testing
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: no
php-version: 8.3
- name: Install Dependencies
uses: ramsey/composer-install@v3
- name: Setup Environment
run: |
sudo systemctl start mysql.service
mysql -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS db;'
sudo systemctl start apache2.service
- name: Unit & Kernel Tests
run: vendor/bin/phpunit --testsuite unit,kernel --testdox --stop-on-failure
- name: Install Drupal
run: bash scripts/install-ci.sh
- name: Existing Site Tests
run: vendor/bin/phpunit --testsuite existing-site --testdox --stop-on-failure
80 changes: 0 additions & 80 deletions .github/workflows/phpanalysis.yml

This file was deleted.

130 changes: 68 additions & 62 deletions composer-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ packages:
behat/mink: v1.12.0
behat/mink-browserkit-driver: v2.2.0
brick/math: 0.12.1
chi-teck/drupal-code-generator: 3.6.1
chi-teck/drupal-code-generator: 4.1.0
colinodell/psr-testlogger: v1.3.0
composer/ca-bundle: 1.5.4
composer/class-map-generator: 1.5.0
Expand All @@ -15,20 +15,19 @@ packages:
composer/spdx-licenses: 1.5.8
composer/xdebug-handler: 3.0.5
consolidation/annotated-command: 4.10.1
consolidation/config: 2.1.2
consolidation/config: 3.1.0
consolidation/filter-via-dot-access-data: 2.0.2
consolidation/log: 3.1.0
consolidation/output-formatters: 4.6.0
consolidation/robo: 4.0.6
consolidation/self-update: 2.2.0
consolidation/robo: 5.1.0
consolidation/site-alias: 4.1.1
consolidation/site-process: 5.4.2
cweagans/composer-patches: 1.7.3
dealerdirect/phpcodesniffer-composer-installer: v0.7.2
defuse/php-encryption: v2.4.0
dekor/php-array-table: '2.0'
dflydev/dot-access-data: v3.0.3
doctrine/annotations: 1.14.4
doctrine/annotations: 2.0.2
doctrine/common: 3.4.5
doctrine/deprecations: 1.1.4
doctrine/event-manager: 2.0.1
Expand All @@ -41,12 +40,12 @@ packages:
drupal/config_ignore: 3.3.0
drupal/consumer_image_styles: 4.0.10
drupal/consumers: 1.19.0
drupal/core: 10.4.0
drupal/core-composer-scaffold: 10.4.0
drupal/core-dev: 10.4.0
drupal/core-project-message: 10.4.0
drupal/core-recommended: 10.4.0
drupal/core-vendor-hardening: 10.4.0
drupal/core: 11.1.0
drupal/core-composer-scaffold: 11.1.0
drupal/core-dev: 11.1.0
drupal/core-project-message: 11.1.0
drupal/core-recommended: 11.1.0
drupal/core-vendor-hardening: 11.1.0
drupal/devel: 5.3.1
drupal/devel_mail_logger: 2.0.0
drupal/entity: 1.5.0
Expand All @@ -71,13 +70,13 @@ packages:
drupal/restui: 1.22.0
drupal/schemata: 1.0.0
drupal/schemata_json_schema: 1.0.0
drupal/simple_oauth: 5.2.5
drupal/simple_oauth: 6.0.0-beta8
drupal/sophron: 2.2.0
drupal/subrequests: 3.0.12
drupal/upgrade_status: 4.3.6
drupal/user_bundle: 1.4.0
drupal/warmer: 2.0.14
drush/drush: 12.5.3
drush/drush: 13.3.3
e0ipso/shaper: 1.2.5
egulias/email-validator: 4.0.2
fakerphp/faker: v1.24.1
Expand All @@ -90,11 +89,16 @@ packages:
guzzlehttp/guzzle: 7.9.2
guzzlehttp/promises: 2.0.4
guzzlehttp/psr7: 2.7.0
illuminate/collections: v11.36.1
illuminate/conditionable: v11.36.1
illuminate/contracts: v11.36.1
illuminate/macroable: v11.36.1
jangregor/phpstan-prophecy: 1.0.2
joachim-n/composer-manifest: 1.1.7
justinrainbow/json-schema: 5.3.0
lcobucci/clock: 3.0.0
lcobucci/jwt: 4.3.0
laravel/prompts: v0.1.25
lcobucci/clock: 3.3.1
lcobucci/jwt: 5.4.2
league/container: 4.2.4
league/event: 2.2.0
league/oauth2-server: 8.5.5
Expand All @@ -104,6 +108,7 @@ packages:
lullabot/php-webdriver: v2.0.6
masterminds/html5: 2.9.0
mck89/peast: v1.16.3
mglaman/composer-drupal-lenient: 1.0.7
mglaman/phpstan-drupal: 1.3.2
micheh/phpcs-gitlab: 1.1.0
mikey179/vfsstream: v1.6.12
Expand All @@ -129,6 +134,7 @@ packages:
php-http/guzzle7-adapter: 1.1.0
php-http/httplug: 2.4.1
php-http/promise: 1.3.1
php-tuf/composer-stager: v2.0.0
phpcompatibility/php-compatibility: 9.3.5
phpdocumentor/reflection-common: 2.2.0
phpdocumentor/reflection-docblock: 5.6.1
Expand All @@ -141,12 +147,12 @@ packages:
phpstan/phpstan: 1.12.13
phpstan/phpstan-deprecation-rules: 1.2.1
phpstan/phpstan-phpunit: 1.4.2
phpunit/php-code-coverage: 9.2.32
phpunit/php-file-iterator: 3.0.6
phpunit/php-invoker: 3.1.1
phpunit/php-text-template: 2.0.4
phpunit/php-timer: 5.0.3
phpunit/phpunit: 9.6.22
phpunit/php-code-coverage: 10.1.16
phpunit/php-file-iterator: 4.1.0
phpunit/php-invoker: 4.0.0
phpunit/php-text-template: 3.0.1
phpunit/php-timer: 6.0.0
phpunit/phpunit: 10.5.40
psr/cache: 3.0.0
psr/clock: 1.0.0
psr/container: 2.0.2
Expand All @@ -155,52 +161,52 @@ packages:
psr/http-factory: 1.1.0
psr/http-message: '2.0'
psr/log: 3.0.2
psr/simple-cache: 3.0.0
psy/psysh: v0.12.7
ralouphie/getallheaders: 3.0.3
ramsey/collection: 2.0.0
ramsey/uuid: 4.7.6
react/promise: v3.2.0
roave/security-advisories: 'dev-latest:abbccc97f36a9c78f033525c019d310433f22b57'
sebastian/cli-parser: 1.0.2
sebastian/code-unit: 1.0.8
sebastian/code-unit-reverse-lookup: 2.0.3
sebastian/comparator: 4.0.8
sebastian/complexity: 2.0.3
sebastian/diff: 4.0.6
sebastian/environment: 5.1.5
sebastian/exporter: 4.0.6
sebastian/global-state: 5.0.7
sebastian/lines-of-code: 1.0.4
sebastian/object-enumerator: 4.0.4
sebastian/object-reflector: 2.0.4
sebastian/recursion-context: 4.0.5
sebastian/resource-operations: 3.0.4
sebastian/type: 3.2.1
sebastian/version: 3.0.2
revolt/event-loop: v1.0.6
roave/security-advisories: 'dev-latest:5a88337185d08d54ac102bc6eb137fc432ea70fb'
sebastian/cli-parser: 2.0.1
sebastian/code-unit: 2.0.0
sebastian/code-unit-reverse-lookup: 3.0.0
sebastian/comparator: 5.0.3
sebastian/complexity: 3.2.0
sebastian/diff: 5.1.1
sebastian/environment: 6.1.0
sebastian/exporter: 5.1.2
sebastian/global-state: 6.0.2
sebastian/lines-of-code: 2.0.2
sebastian/object-enumerator: 5.0.0
sebastian/object-reflector: 3.0.0
sebastian/recursion-context: 5.0.0
sebastian/type: 4.0.0
sebastian/version: 4.0.1
seld/jsonlint: 1.11.0
seld/phar-utils: 1.2.1
seld/signal-handler: 2.0.2
sirbrillig/phpcs-variable-analysis: v2.11.21
slevomat/coding-standard: 8.15.0
squizlabs/php_codesniffer: 3.11.2
steverhoades/oauth2-openid-connect-server: v2.6.1
symfony/browser-kit: v6.4.13
symfony/console: v6.4.15
symfony/css-selector: v6.4.13
symfony/dependency-injection: v6.4.16
symfony/browser-kit: v7.2.0
symfony/console: v7.2.1
symfony/css-selector: v7.2.0
symfony/dependency-injection: v7.2.0
symfony/deprecation-contracts: v3.5.1
symfony/dom-crawler: v6.4.16
symfony/error-handler: v6.4.14
symfony/event-dispatcher: v6.4.13
symfony/dom-crawler: v7.2.0
symfony/error-handler: v7.2.1
symfony/event-dispatcher: v7.2.0
symfony/event-dispatcher-contracts: v3.5.1
symfony/filesystem: v6.4.13
symfony/finder: v6.4.13
symfony/http-foundation: v6.4.16
symfony/http-kernel: v6.4.16
symfony/lock: v6.4.13
symfony/mailer: v6.4.13
symfony/mime: v6.4.13
symfony/phpunit-bridge: v6.4.16
symfony/filesystem: v7.2.0
symfony/finder: v7.2.0
symfony/http-foundation: v7.2.0
symfony/http-kernel: v7.2.1
symfony/lock: v7.2.0
symfony/mailer: v7.2.0
symfony/mime: v7.2.1
symfony/polyfill-ctype: v1.31.0
symfony/polyfill-iconv: v1.31.0
symfony/polyfill-intl-grapheme: v1.31.0
Expand All @@ -212,17 +218,17 @@ packages:
symfony/polyfill-php81: v1.31.0
symfony/polyfill-php82: v1.31.0
symfony/polyfill-php83: v1.31.0
symfony/process: v6.4.15
symfony/psr-http-message-bridge: v6.4.13
symfony/routing: v6.4.16
symfony/serializer: v6.4.15
symfony/process: v7.2.0
symfony/psr-http-message-bridge: v7.2.0
symfony/routing: v7.2.0
symfony/serializer: v7.2.0
symfony/service-contracts: v3.5.1
symfony/string: v6.4.15
symfony/string: v7.2.0
symfony/translation-contracts: v3.5.1
symfony/validator: v6.4.16
symfony/var-dumper: v6.4.15
symfony/var-exporter: v6.4.13
symfony/yaml: v6.4.13
symfony/validator: v7.2.0
symfony/var-dumper: v7.2.0
symfony/var-exporter: v7.2.0
symfony/yaml: v7.2.0
tbachert/spi: v1.0.2
theseer/tokenizer: 1.2.3
twig/twig: v3.16.0
Expand Down
Loading

0 comments on commit f3a1950

Please sign in to comment.