Skip to content

Commit

Permalink
Update configs for more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
anomiex committed Nov 29, 2023
1 parent 79debec commit 6adcf3f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 13 additions & 1 deletion .github/renovate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,25 @@ module.exports = {
enabled: false,
},
// PHP non-dev deps need to work with the oldest PHP versions we support.
// In plugins, we can't update at all. In other stuff, widening is ok.
// Here we apply config to everything first, then override it for plugins.
{
matchDatasources: [ 'packagist' ],
matchDepTypes: [ 'require' ],
constraints: {
php: `~${ versions.MIN_PHP_VERSION }.0`,
php: `>=${ versions.MIN_PHP_VERSION }.0`,
},
constraintsFiltering: 'strict',
rangeStrategy: 'widen',
},
{
matchDatasources: [ 'packagist' ],
matchDepTypes: [ 'require' ],
matchFileNames: [ 'projects/plugins/**' ],
constraints: {
php: `~${ versions.MIN_PHP_VERSION }.0`,
},
rangeStrategy: 'bump',
},
],
};
14 changes: 5 additions & 9 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,12 @@
// Monorepo packages are excluded in renovate-config.js, where we can read
// the list of them in code.

// We need to keep a wide version range to support PHP 7.0.
// Note for libraries used in plugins this will only work right for require-dev deps, not require.
// Widen PHP dev deps to maintain support for old PHP versions we still support.
// When we drop an old PHP version we'll manually go through and narrow any ranges.
// (non-dev deps are handled in renovate-config.js where we can read the correct value for `constraints.php`)
{
matchPackageNames: [
'johnkary/phpunit-speedtrap',
'symfony/console',
'symfony/process',
'wikimedia/at-ease',
'wikimedia/testing-access-wrapper',
],
matchDatasources: [ 'packagist' ],
matchDepTypes: [ 'require-dev' ],
rangeStrategy: 'widen',
},

Expand Down

0 comments on commit 6adcf3f

Please sign in to comment.