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 #166 from matteosister/develop
Merging ongoing develop to master
- Loading branch information
Showing
98 changed files
with
1,575 additions
and
1,344 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,46 @@ | ||
name: Code_Checks | ||
|
||
on: | ||
pull_request: null | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: ['7.2', '7.3', '7.4'] | ||
|
||
name: PHP ${{ matrix.php }} tests | ||
steps: | ||
# basically git clone | ||
- uses: actions/checkout@v2 | ||
|
||
# use PHP of specific version | ||
- uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none # disable xdebug, pcov | ||
|
||
- run: git --version | ||
- run: git config --global user.email "test@github.com" | ||
- run: git config --global user.name "GitHub Action" | ||
- run: git --version | ||
|
||
# if we 2 steps like this, we can better see if composer failed or tests | ||
- run: composer install --no-progress | ||
|
||
- run: composer tests | ||
|
||
code_style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: 7.3 | ||
coverage: none # disable xdebug, pcov | ||
- run: composer install --no-progress | ||
- run: composer check-cs |
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,24 @@ | ||
# ecs.yml | ||
parameters: | ||
sets: | ||
- 'clean-code' | ||
- 'psr2' | ||
- 'psr12' | ||
paths: | ||
- 'src' | ||
- 'tests' | ||
|
||
# Skip two possible bugs in SlevomatCodingStandard\Sniffs\Variables\UnusedVariableSniff.UnusedVariable | ||
skip: | ||
'Unused variable $deleted.': | ||
- 'src/GitElephant/Objects/Diff/DiffChunk.php' | ||
'Unused variable $new.': | ||
- 'src/GitElephant/Objects/Diff/DiffChunk.php' | ||
|
||
services: | ||
PhpCsFixer\Fixer\ArrayNotation\ArraySyntaxFixer: | ||
syntax: short | ||
Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer: | ||
max_line_length: 100 # default: 120 | ||
break_long_lines: true # default: true | ||
inline_short_lines: false # default: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
parameters: | ||
# autoload_paths: | ||
# - 'vendor/autoload.php' | ||
paths: | ||
- 'src' | ||
- 'tests' | ||
php_version_features: '7.2' | ||
sets: | ||
- 'code-quality' | ||
- 'symfony-code-quality' | ||
- 'php71' | ||
- 'php72' | ||
- 'php73' | ||
- 'phpunit90' | ||
|
Oops, something went wrong.