-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade PHP version in workflow configurations
The PHP version used in the GitHub workflow configurations for coding standards, static analysis, and continuous integration has been updated. The previous version was 8.1 and it has been upgraded to 8.3. Likewise, the 'old_stable' and 'current_stable
- Loading branch information
Showing
34 changed files
with
282 additions
and
164 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Coding Standards | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cs: | ||
uses: ray-di/.github/.github/workflows/coding-standards.yml@v1 | ||
with: | ||
php_version: 8.3 |
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,13 @@ | ||
name: Static Analysis | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sa: | ||
uses: ray-di/.github/.github/workflows/static-analysis.yml@v1 | ||
with: | ||
php_version: 8.3 | ||
has_crc_config: 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
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/composer.lock | ||
/.php_cs.cache | ||
/.phpunit.result.cache | ||
/.phpcs-cache |
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,18 @@ | ||
{ | ||
"symbol-whitelist" : [ | ||
"Mobile_Detect" | ||
], | ||
"php-core-extensions" : [ | ||
"Core", | ||
"date", | ||
"json", | ||
"hash", | ||
"pcre", | ||
"Phar", | ||
"Reflection", | ||
"SPL", | ||
"random", | ||
"standard" | ||
], | ||
"scan-files" : [] | ||
} |
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 |
---|---|---|
|
@@ -15,22 +15,25 @@ | |
], | ||
"require": { | ||
"php": "^8.0", | ||
"bear/resource": "^1.15.2", | ||
"bear/resource": "^1.20", | ||
"bear/sunday": "^1.2", | ||
"bear/app-meta": "^1.1", | ||
"bear/app-meta": "^1.8", | ||
"twig/twig": "^2.15.3 || ^v3.4.3", | ||
"mobiledetect/mobiledetectlib": "^2.7", | ||
"mobiledetect/mobiledetectlib": "^2.7 || ^3.74", | ||
"ray/di": "^2.7", | ||
"doctrine/annotations": "^1.13.3" | ||
"ray/aop": "^2.13", | ||
"psr/log": "^3.0" | ||
}, | ||
"require-dev": { | ||
"doctrine/annotations": "^1.13.3 || ^2.0", | ||
"phpunit/phpunit": "^9.5.21", | ||
"squizlabs/php_codesniffer": "^3.7", | ||
"phpmd/phpmd": "^2.6", | ||
"rector/rector": "^0.15.3", | ||
"ray/rector-ray": "^1.0", | ||
"doctrine/coding-standard": "^11.1", | ||
"vimeo/psalm": "^5.4" | ||
"doctrine/coding-standard": "^12.0", | ||
"vimeo/psalm": "^5.4", | ||
"phpstan/phpstan": "^1.10" | ||
}, | ||
"autoload":{ | ||
"psr-4":{ | ||
|
@@ -46,13 +49,12 @@ | |
} | ||
}, | ||
"scripts": { | ||
"test": ["@setup", "vendor/bin/phpunit"], | ||
"test74": ["/usr/local/Cellar/[email protected]/7.4.14/bin/php vendor/bin/phpunit"], | ||
"tests": ["@cs", "phpstan analyse -l max src tests -c phpstan.neon --no-progress", "@test"], | ||
"coverage": ["php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage"], | ||
"cs": ["php-cs-fixer fix -v --dry-run", "phpcs --standard=phpcs.xml src;"], | ||
"test": ["phpunit"], | ||
"tests": ["@cs", "@sa", "@test"], | ||
"coverage": ["php -dzend_extension=xdebug.so -dxdebug.mode=coverage phpunit --coverage-text --coverage-html=build/coverage"], | ||
"cs": ["phpcs --standard=phpcs.xml src"], | ||
"cs-fix": ["phpcbf src tests"], | ||
"sa": "psalm" | ||
"sa": ["psalm", "phpstan"] | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
|
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,9 @@ | ||
parameters: | ||
level: max | ||
paths: | ||
- src | ||
- tests | ||
excludePaths: | ||
- */tests/tmp/* | ||
- */tests/Fake/* | ||
ignoreErrors: |
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,12 @@ | ||
<?xml version="1.0"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="tests/bootstrap.php"> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php"> | ||
<coverage processUncoveredFiles="true"> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</coverage> <testsuites> | ||
<testsuite name="TwigModule test suite"> | ||
<directory suffix="Test.php">tests</directory> | ||
<directory>tests</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
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
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ public function __construct( | |
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
* {@inheritDoc} | ||
*/ | ||
public function get() | ||
{ | ||
|
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
Oops, something went wrong.