-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from certificationy/upgrade/requirements
Dependencies upgrade
- Loading branch information
Showing
13 changed files
with
3,195 additions
and
862 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,37 @@ | ||
name: Code Quality | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
code-quality: | ||
name: Code Quality | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
php: ['7.4','8'] | ||
|
||
steps: | ||
- name: "Init repository" | ||
uses: actions/checkout@v2 | ||
|
||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: xsl | ||
tools: composer | ||
|
||
- name: "Install dependencies" | ||
run: composer install | ||
|
||
- name: "PHPStan" | ||
run: composer phpstan | ||
|
||
- name: "PHP-CS-Fixer" | ||
run: composer cs-fix | ||
|
||
- name: "Test suite" | ||
run: composer test |
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,4 @@ | ||
/*.phar | ||
/vendor | ||
.phpunit.result.cache | ||
.php_cs.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,40 @@ | ||
<?php | ||
|
||
$finder = PhpCsFixer\Finder::create()->in([ | ||
__DIR__.'/src', | ||
__DIR__.'/tests', | ||
]); | ||
|
||
return PhpCsFixer\Config::create() | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'concat_space' => [ | ||
'spacing' => 'one', | ||
], | ||
'cast_spaces' => [ | ||
'space' => 'single', | ||
], | ||
'error_suppression' => [ | ||
'mute_deprecation_error' => false, | ||
'noise_remaining_usages' => false, | ||
'noise_remaining_usages_exclude' => [], | ||
], | ||
'function_to_constant' => false, | ||
'no_alias_functions' => false, | ||
'non_printable_character' => false, | ||
'phpdoc_summary' => false, | ||
'phpdoc_align' => [ | ||
'align' => 'left', | ||
], | ||
'protected_to_private' => false, | ||
'psr4' => false, | ||
'self_accessor' => false, | ||
'yoda_style' => null, | ||
'non_printable_character' => true, | ||
'phpdoc_no_empty_return' => false, | ||
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'], | ||
]) | ||
->setFinder($finder) | ||
->setCacheFile(__DIR__.'/.php_cs.cache') | ||
; |
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
Oops, something went wrong.