-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be82c05
commit 2f5e651
Showing
8 changed files
with
135 additions
and
92 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,26 @@ | ||
name: PHP_CodeSniffer | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.operating-system }} | ||
|
||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-20.04] | ||
php-version: ['7.1', '7.4'] | ||
|
||
name: Testing PHP ${{ matrix.php-version }} on ${{ matrix.operating-system }} | ||
|
||
steps: | ||
- uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: json,intl,mbstring | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- run: composer validate | ||
- run: composer install --no-progress | ||
- run: vendor/bin/phpcs src/ --standard=PSR12 |
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,26 @@ | ||
name: PHPStan | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
run: | ||
runs-on: ${{ matrix.operating-system }} | ||
|
||
strategy: | ||
matrix: | ||
operating-system: [ubuntu-20.04] | ||
php-version: ['7.1', '7.4'] | ||
|
||
name: Testing PHP ${{ matrix.php-version }} on ${{ matrix.operating-system }} | ||
|
||
steps: | ||
- uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
extensions: json,intl,mbstring | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- run: composer validate | ||
- run: composer install --no-progress | ||
- run: vendor/bin/phpstan analyse -c phpstan.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
parameters: | ||
# you can currently choose from 9 levels (0 is the loosest and 8 is the strictest). | ||
level: 5 | ||
# You can currently choose from 10 levels (0 is the loosest and 9 is the strictest). | ||
level: 8 | ||
|
||
paths: | ||
- src | ||
# if you have tests and want to analyze this folder, uncomment the line below | ||
# If you have tests and want to analyze this folder, uncomment the line below | ||
# - test | ||
|
||
fileExtensions: | ||
- php | ||
|
||
checkMissingIterableValueType: false |
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