-
-
Notifications
You must be signed in to change notification settings - Fork 75
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 #168 from matteosister/march-2020-improvements
March 2020 improvements
- Loading branch information
Showing
49 changed files
with
476 additions
and
253 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,7 +1,7 @@ | ||
name: Code_Checks | ||
|
||
on: | ||
pull_request: null | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
@@ -11,36 +11,64 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: ['7.2', '7.3', '7.4'] | ||
php: | ||
- "7.2" | ||
- "7.3" | ||
- "7.4" | ||
symfony: | ||
- 3.* | ||
- 4.* | ||
- 5.* | ||
dependency-version: | ||
# - prefer-lowest | ||
- prefer-stable | ||
|
||
name: PHP ${{ matrix.php }} tests | ||
name: PHP ${{ matrix.php }} - S ${{ matrix.symfony }} - ${{ matrix.dependency-version }} - tests | ||
steps: | ||
# basically git clone | ||
- uses: actions/checkout@v2 | ||
- 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 "[email protected]" | ||
- run: git config --global user.name "GitHub Action" | ||
- run: git --version | ||
- name: Setup Git | ||
run: | | ||
git --version | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Action" | ||
git --version | ||
# if we 2 steps like this, we can better see if composer failed or tests | ||
- run: composer install --no-progress | ||
- name: Setup PHP | ||
# use PHP of specific version | ||
uses: shivammathur/setup-php@v1 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none # disable xdebug, pcov | ||
tools: composer | ||
|
||
- run: composer tests | ||
- name: Install Composer Dependencies | ||
run: | | ||
composer require "symfony/process:${{ matrix.symfony }}" "symfony/filesystem:${{ matrix.symfony }}" "symfony/finder:${{ matrix.symfony }}" --no-interaction --no-update | ||
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest | ||
- name: Run PHPUnit Tests | ||
run: composer tests | ||
|
||
static_tests: | ||
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: ./vendor/bin/phpstan analyse -c phpstan.neon | ||
|
||
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 | ||
- 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
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,20 @@ | ||
parameters: | ||
level: 6 | ||
paths: | ||
- src | ||
# - tests | ||
|
||
# things we disable for the moement, but one day... | ||
inferPrivatePropertyTypeFromConstructor: true | ||
checkMissingIterableValueType: false | ||
checkGenericClassInNonGenericObjectType: false | ||
ignoreErrors: | ||
- | ||
message: '#Unsafe usage of new static\(\).#' | ||
path: %currentWorkingDirectory% | ||
- | ||
message: '#Parameter \#1 \$command of class Symfony\\Component\\Process\\Process constructor expects array, string given.#' | ||
path: src/GitElephant/Command/Caller/Caller.php | ||
|
||
includes: | ||
- vendor/phpstan/phpstan-phpunit/extension.neon |
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
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.