-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
796a9ee
commit 27658da
Showing
15 changed files
with
201 additions
and
119 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.editorconfig export-ignore | ||
.github export-ignore | ||
tests export-ignore | ||
behat.yml export-ignore | ||
phpcs.xml export-ignore | ||
phpmd.xml export-ignore | ||
phpstan.neon export-ignore | ||
renovate.json export-ignore | ||
# Ignore files for distribution archives. | ||
|
||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/tests export-ignore | ||
/phpcs.xml export-ignore | ||
/phpmd.xml export-ignore | ||
/phpstan.neon export-ignore | ||
/phpunit.xml export-ignore | ||
/renovate.json export-ignore | ||
/behat.yml export-ignore |
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,12 +1,14 @@ | ||
name-template: '$NEXT_MINOR_VERSION' | ||
tag-template: '$NEXT_MINOR_VERSION' | ||
name-template: '$RESOLVED_VERSION' | ||
tag-template: '$RESOLVED_VERSION' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
version-resolver: | ||
default: minor | ||
template: | | ||
## What's new since $PREVIOUS_TAG | ||
$CHANGES | ||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$NEXT_MINOR_VERSION | ||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION | ||
$CONTRIBUTORS |
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,42 @@ | ||
name: Test PHP | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
- 'feature/**' | ||
|
||
jobs: | ||
test-php: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php-versions: ['8.1', '8.2', '8.3'] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache Composer dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: /tmp/composer-cache | ||
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
|
||
- name: Install dependencies | ||
run: composer install | ||
|
||
- name: Check coding standards | ||
run: composer lint | ||
|
||
- name: Run tests | ||
run: composer test |
This file was deleted.
Oops, something went wrong.
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,2 +1,5 @@ | ||
# To ignore OS temporary files use global .gitignore | ||
# https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer | ||
|
||
vendor | ||
composer.lock |
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,67 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Rector configuration. | ||
* | ||
* Usage: | ||
* ./vendor/bin/rector process . | ||
* | ||
* @see https://github.com/palantirnet/drupal-rector/blob/main/rector.php | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector; | ||
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector; | ||
use Rector\CodingStyle\Rector\ClassMethod\NewlineBeforeNewAssignSetRector; | ||
use Rector\CodingStyle\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector; | ||
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; | ||
use Rector\CodingStyle\Rector\PostInc\PostIncDecToPreIncDecRector; | ||
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector; | ||
use Rector\Config\RectorConfig; | ||
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector; | ||
use Rector\Set\ValueObject\SetList; | ||
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->paths([ | ||
__DIR__ . '/**', | ||
]); | ||
|
||
$rectorConfig->sets([ | ||
SetList::PHP_80, | ||
SetList::PHP_81, | ||
SetList::CODE_QUALITY, | ||
SetList::CODING_STYLE, | ||
SetList::DEAD_CODE, | ||
SetList::INSTANCEOF, | ||
SetList::TYPE_DECLARATION, | ||
]); | ||
|
||
$rectorConfig->skip([ | ||
// Rules added by Rector's rule sets. | ||
ArraySpreadInsteadOfArrayMergeRector::class, | ||
CountArrayToEmptyArrayComparisonRector::class, | ||
DisallowedEmptyRuleFixerRector::class, | ||
InlineArrayReturnAssignRector::class, | ||
NewlineAfterStatementRector::class, | ||
NewlineBeforeNewAssignSetRector::class, | ||
PostIncDecToPreIncDecRector::class, | ||
RemoveAlwaysTrueIfConditionRector::class, | ||
SimplifyEmptyCheckOnEmptyArrayRector::class, | ||
// Dependencies. | ||
'*/vendor/*', | ||
'*/node_modules/*', | ||
// BehatCliContext. | ||
'tests/behat/features/bootstrap/BehatCliContext.php', | ||
]); | ||
|
||
$rectorConfig->fileExtensions([ | ||
'php', | ||
'inc', | ||
]); | ||
|
||
$rectorConfig->importNames(TRUE, FALSE); | ||
$rectorConfig->importShortClasses(FALSE); | ||
}; |
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,8 +1,8 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"automerge": true, | ||
"dependencyDashboard": true, | ||
"extends": [ | ||
"config:base" | ||
], | ||
"automerge": true | ||
] | ||
} |
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.