-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.x' into allow-symfony-7
- Loading branch information
Showing
16 changed files
with
191 additions
and
213 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,8 +1,7 @@ | ||
/tests export-ignore | ||
/.gitattributes export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/.php_cs.dist export-ignore | ||
/.styleci.yml export-ignore | ||
/.travis.yml export-ignore | ||
/.php-cs-fixer.dist.php export-ignore | ||
/phpstan.neon export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/ruleset.xml 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*.x' | ||
pull_request: | ||
|
||
jobs: | ||
phpunit: | ||
name: PHP ${{ matrix.php }} ${{ matrix.env.COMPOSER_FLAGS }} | ||
runs-on: ubuntu-20.04 | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: weak | ||
PHPUNIT_FLAGS: "-v" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- php: '7.2' | ||
env: | ||
SYMFONY_REQUIRE: "*" | ||
- php: '7.3' | ||
env: | ||
SYMFONY_REQUIRE: "*" | ||
- php: '7.4' | ||
env: | ||
SYMFONY_REQUIRE: "*" | ||
- php: '8.0' | ||
env: | ||
SYMFONY_REQUIRE: "*" | ||
- php: '8.1' | ||
env: | ||
SYMFONY_REQUIRE: "*" | ||
- php: '8.2' | ||
env: | ||
SYMFONY_REQUIRE: "*" | ||
- php: '7.2' | ||
env: | ||
COMPOSER_FLAGS: "--prefer-lowest" | ||
- php: '8.0' | ||
env: | ||
COMPOSER_FLAGS: "--prefer-lowest" | ||
|
||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:v2 | ||
coverage: none | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install composer dependencies | ||
run: | | ||
composer update --prefer-dist --no-interaction --no-progress --no-ansi ${COMPOSER_FLAGS} | ||
vendor/bin/simple-phpunit install | ||
- name: Execute tests | ||
run: | | ||
composer validate --strict --no-check-lock | ||
vendor/bin/simple-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Static analysis | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*.x' | ||
pull_request: | ||
|
||
jobs: | ||
phpstan: | ||
name: phpstan | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Downgrade composer and require extra extensions | ||
# setting composer config version to be able to install with outdated composer version, see https://github.com/OskarStark/phpstan-ga/pull/50 | ||
run: | | ||
composer config version 1.3.3 | ||
composer require --no-update phpstan/phpstan-symfony | ||
- name: PHPStan | ||
uses: docker://oskarstark/phpstan-ga | ||
with: | ||
args: analyze --no-progress | ||
|
||
php-cs-fixer: | ||
name: PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: PHP-CS-Fixer | ||
uses: docker://oskarstark/php-cs-fixer-ga | ||
with: | ||
args: --dry-run --diff |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
/composer.lock | ||
/.idea | ||
/.php_cs.cache | ||
/.php-cs-fixer.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,37 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create() | ||
->notPath('src/AppBundle/Command/TestCommand.php') | ||
->exclude('tests/*/Fixtures') | ||
->exclude('var') | ||
->in(__DIR__); | ||
|
||
$config = new PhpCsFixer\Config(); | ||
|
||
return $config | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'@Symfony:risky' => true, | ||
'array_syntax' => ['syntax' => 'short'], | ||
'combine_consecutive_unsets' => true, | ||
'heredoc_to_nowdoc' => true, | ||
'no_extra_blank_lines' => ['tokens' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block']], | ||
'no_unreachable_default_argument_value' => true, | ||
'no_useless_else' => true, | ||
'no_useless_return' => true, | ||
'non_printable_character' => true, | ||
'ordered_class_elements' => true, | ||
'ordered_imports' => true, | ||
'phpdoc_add_missing_param_annotation' => true, | ||
'phpdoc_order' => true, | ||
'random_api_migration' => true, | ||
'psr_autoloading' => true, | ||
'strict_param' => true, | ||
'native_function_invocation' => ['include' => ['@compiler_optimized']], | ||
'phpdoc_no_empty_return' => false, | ||
'no_superfluous_phpdoc_tags' => true, | ||
]) | ||
->setFinder( | ||
$finder | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,6 @@ | ||
parameters: | ||
level: 7 | ||
paths: | ||
- src/ | ||
checkMissingIterableValueType: false | ||
checkGenericClassInNonGenericObjectType: false |
Oops, something went wrong.