-
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.
* Add PHP 8.2 support
- Loading branch information
Showing
17 changed files
with
261 additions
and
46 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
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,35 @@ | ||
name: Composer | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
static-analysis: | ||
name: Composer Scans | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: setup php | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
|
||
- name: validate composer.json | ||
run: composer validate | ||
|
||
- name: install deps | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: composer audit | ||
run: composer audit |
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,32 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
static-analysis: | ||
name: Lint | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: setup php | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
|
||
- name: install deps | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: lint | ||
run: composer lint |
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,32 @@ | ||
name: Static Analysis | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
static-analysis: | ||
name: Static Analysis | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php-version: | ||
- "7.4" | ||
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: setup php | ||
uses: shivammathur/setup-php@master | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
|
||
- name: install deps | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: phpstan | ||
run: composer analyse-ci |
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 |
---|---|---|
|
@@ -17,16 +17,21 @@ | |
{ | ||
"name": "Mith Habib", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Scott Flack", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.4.0", | ||
"php": "^7.4.0||^8.0", | ||
"guzzlehttp/guzzle": "^7.2", | ||
"ext-json": "*" | ||
}, | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7", | ||
"php-vcr/php-vcr": "^1.5.2", | ||
"phpstan/phpstan": "^1.10", | ||
"phpunit/phpunit": "^9.0", | ||
"symfony/var-dumper": "^4.2", | ||
"vlucas/phpdotenv": "^2.5" | ||
|
@@ -52,7 +57,9 @@ | |
"@install-codestandards" | ||
], | ||
"test": "./vendor/bin/phpunit --colors=always", | ||
"lint": "./vendor/bin/phpcs --warning-severity=6 --runtime-set testVersion 5.6-" | ||
"lint": "./vendor/bin/phpcs --warning-severity=6 --runtime-set testVersion 5.6-", | ||
"analyse": "./vendor/bin/phpstan analyse", | ||
"analyse-ci": "./vendor/bin/phpstan analyse --error-format github > phpstan.json" | ||
}, | ||
"config": { | ||
"sort-packages": true, | ||
|
Empty file.
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,14 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
paths: | ||
- src | ||
- tests | ||
|
||
level: 6 | ||
|
||
excludePaths: | ||
- ./*/*/FileToBeExcluded.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
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.