Skip to content
Snippets Groups Projects
Commit b215b250 authored by Tim Plunkett's avatar Tim Plunkett Committed by Chris Wells
Browse files

Issue #3512785: Bump minimum compatibility to Drupal Core 10.4 and enable CI

parent d4a01a79
No related branches found
No related tags found
1 merge request!784Issue #3512785: Enable CI for D10
Pipeline #447724 failed
......@@ -56,6 +56,7 @@ stages:
variables:
# For parallel running, needs more CPU resources.
KUBERNETES_CPU_REQUEST: 16
OPT_IN_TEST_PREVIOUS_MAJOR: '1'
OPT_IN_TEST_NEXT_MAJOR: '1'
# These two variables allow PHPUnit to run in a parallel job matrix.
_PHPUNIT_CONCURRENT: '1'
......@@ -271,3 +272,12 @@ phpunit:
phpunit (next major):
# Require us to be compatible with the next major version of core.
allow_failure: false
phpstan (previous major):
extends: phpstan
rules:
- !reference [ .opt-in-previous-major-rule ]
- !reference [ .skip-phpstan-rule ]
- !reference [ .phpstan-allow-failure-rule ]
needs:
- 'composer (previous major)'
......@@ -14,7 +14,7 @@
"require-dev": {
"colinodell/psr-testlogger": "^1.2",
"drupal/automatic_updates": "^3.1.3",
"drush/drush": "^13"
"drush/drush": "^12.5 || ^13"
},
"conflict": {
"drupal/automatic_updates": "<3.0",
......
name: Project Browser
type: module
description: Provides a user interface for browsing available Drupal projects.
core_version_requirement: ^10.3 || ^11
core_version_requirement: ^10.4 || ^11
configure: project_browser.settings
......@@ -34,35 +34,35 @@ abstract class DrupalDotOrgSourceBase extends ProjectBrowserSourceBase implement
*
* @const string
*/
public const string DRUPAL_ORG_ENDPOINT = 'https://www.drupal.org';
public const DRUPAL_ORG_ENDPOINT = 'https://www.drupal.org';
/**
* Endpoint to query data from.
*
* @const string
*/
public const string JSONAPI_ENDPOINT = self::DRUPAL_ORG_ENDPOINT . '/jsonapi';
public const JSONAPI_ENDPOINT = self::DRUPAL_ORG_ENDPOINT . '/jsonapi';
/**
* Endpoint to query modules.
*
* @const string
*/
protected const string JSONAPI_MODULES_ENDPOINT = self::JSONAPI_ENDPOINT . '/index/project_modules';
protected const JSONAPI_MODULES_ENDPOINT = self::JSONAPI_ENDPOINT . '/index/project_modules';
/**
* Value of the revoked status in the security coverage field.
*
* @const string
*/
protected const string REVOKED_STATUS = 'revoked';
protected const REVOKED_STATUS = 'revoked';
/**
* This is what Drupal.org understands as "Covered" modules.
*
* @var array
*/
private const array COVERED_VALUES = ['covered'];
private const COVERED_VALUES = ['covered'];
public function __construct(
array $configuration,
......
......@@ -6,7 +6,7 @@ namespace Drupal\Tests\project_browser\FunctionalJavascript;
use Behat\Mink\Element\NodeElement;
use Drupal\Core\Extension\ModuleInstallerInterface;
use Drupal\Core\Recipe\Recipe;
use Drupal\Core\Recipe\RecipeInputFormTrait;
use Drupal\Core\State\StateInterface;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\project_browser\InstallState;
......@@ -154,7 +154,7 @@ final class ProjectBrowserInstallerUiTest extends WebDriverTestBase {
// Apply a recipe that requires user input.
// @todo Remove this check in https://www.drupal.org/i/3494848.
if (!property_exists(Recipe::class, 'input')) {
if (!trait_exists(RecipeInputFormTrait::class)) {
$this->markTestSkipped('This test cannot continue because this version of Drupal does not support collecting recipe input.');
}
$this->inputSearchField('test', TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment