-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Drupal 11 support #189
Draft
millnut
wants to merge
22
commits into
3.x
Choose a base branch
from
feature/drupal-11-support
base: 3.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f1ca640
Added Drupal 11 support
stephen-cox cd20966
fix: allow paratest which is compatible with latest version of phpuni…
millnut 46f4a6a
fix: override fontawesome with dev version
millnut a2ba10e
fix: update composer installers to fix deprecated warnings
millnut 9e5f82c
fix: add patch to php-htmldiff to fix PHP 8.4 errors in PHPUnit
millnut 085770f
fix: update phpunit config to match drupal core
millnut ec55d88
fix: update phpunit config to match drupal core
millnut 22395b2
fix: update phpunit config to match drupal core
millnut 2865e44
fix: remove geo entity composer alias now there is a version with D11…
millnut 67be6c8
feat: add separate phpunit file for D11
millnut fd6eec4
feat: fontawesome now has a D11 release so remove the repo usage
millnut ac9dc2d
fix: remove patch for caxy/php-htmldiff as latest version now support…
millnut 9c79009
Updated Github workflow to test with Drupal 11
stephen-cox 4aab87a
Tweaks for D11 support
stephen-cox 2cdec57
Adjust Github workflow to workaround dev package install failure
stephen-cox 6050133
fix: only phpcs and phpstan once and for now set to core 10 and PHP 8.4
millnut dfd40fb
fix: add composer-drupal-lenient for facets_form as no D11 release
millnut 7335bb6
fix: add specific drupal core install as project can be either 10 or …
millnut f5327ff
fix: add specific drupal core install as project can be either 10 or …
millnut 0bd7b68
fix: add specific drupal core install as project can be either 10 or …
millnut a05578f
fix: run phpstan and phpcs on D11
millnut 9ae4146
fix: ignore tablefield 2.4 for tablefield 3.0
millnut File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Ignore directories generated by Composer | ||
/drush/contrib/ | ||
/recipes/ | ||
/vendor/ | ||
/web/core/ | ||
/web/modules/contrib/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit bootstrap="web/core/tests/bootstrap.php" colors="true" | ||
beStrictAboutTestsThatDoNotTestAnything="true" | ||
beStrictAboutOutputDuringTests="true" | ||
beStrictAboutChangesToGlobalState="true" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
displayDetailsOnTestsThatTriggerErrors="true" | ||
displayDetailsOnTestsThatTriggerWarnings="true" | ||
displayDetailsOnTestsThatTriggerDeprecations="true" | ||
cacheResult="false"> | ||
|
||
<php> | ||
<!-- Set error reporting to E_ALL. --> | ||
<ini name="error_reporting" value="32767"/> | ||
<!-- Do not limit the amount of memory tests take to run. --> | ||
<ini name="memory_limit" value="-1"/> | ||
<!-- Example SIMPLETEST_BASE_URL value: http://localhost --> | ||
<env name="SIMPLETEST_BASE_URL" value="http://localgov.lndo.site"/> | ||
<!-- Example SIMPLETEST_DB value: mysql://username:password@localhost/databasename#table_prefix --> | ||
<env name="SIMPLETEST_DB" value="mysql://database:database@database/database"/> | ||
<!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output --> | ||
<env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/> | ||
<!-- To have browsertest output use an alternative base URL. For example if | ||
SIMPLETEST_BASE_URL is an internal DDEV URL, you can set this to the | ||
external DDev URL so you can follow the links directly. | ||
--> | ||
<env name="BROWSERTEST_OUTPUT_BASE_URL" value=""/> | ||
</php> | ||
|
||
<extensions> | ||
<!-- Functional tests HTML output logging. --> | ||
<bootstrap class="Drupal\TestTools\Extension\HtmlLogging\HtmlOutputLogger"> | ||
<!-- The directory where the browser output will be stored. If a relative | ||
path is specified, it will be relative to the current working directory | ||
of the process running the PHPUnit CLI. In CI environments, this can be | ||
overridden by the value set for the "BROWSERTEST_OUTPUT_DIRECTORY" | ||
environment variable. | ||
--> | ||
<parameter name="outputDirectory" value="sites/simpletest/browser_output"/> | ||
<!-- By default browser tests print the individual links in the test run | ||
report. To avoid overcrowding the output in CI environments, you can | ||
set the "verbose" parameter or the "BROWSERTEST_OUTPUT_VERBOSE" | ||
environment variable to "false". In GitLabCI, the output is saved | ||
anyway as an artifact that can be browsed or downloaded from Gitlab. | ||
--> | ||
<parameter name="verbose" value="true"/> | ||
</bootstrap> | ||
</extensions> | ||
|
||
<testsuites> | ||
<testsuite name="profile"> | ||
<directory>web/profiles/contrib/localgov</directory> | ||
</testsuite> | ||
<testsuite name="modules"> | ||
<directory>web/modules/contrib/localgov_*</directory> | ||
</testsuite> | ||
<testsuite name="themes"> | ||
<directory>./web/themes/contrib/localgov_*</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@millnut This shouldn't be necessary when localgovdrupal/localgov_paragraphs#222 is merged and released.