-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update badges * Fix code styles * Update build * Update editorconfig settings * Allow phpunit 10 * Update build * Update editorconfig settings * Fix cs * Update .gitignore * Fix test providers
- Loading branch information
Showing
15 changed files
with
143 additions
and
107 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 |
---|---|---|
@@ -1,47 +1,47 @@ | ||
name: Tests | ||
name: tests | ||
|
||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
tests: | ||
name: Tests PHP ${{ matrix.php }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [7.4, 8.0, 8.1, 8.2] | ||
include: | ||
- php: 8.1 | ||
analysis: true | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: xdebug | ||
|
||
- name: Install dependencies with Composer | ||
uses: ramsey/composer-install@v1 | ||
|
||
- name: Coding standards | ||
if: matrix.analysis | ||
run: vendor/bin/phpcs | ||
|
||
- name: Static analysis | ||
if: matrix.analysis | ||
run: vendor/bin/phpstan | ||
|
||
- name: Tests | ||
run: vendor/bin/phpunit --coverage-clover clover.xml | ||
|
||
- name: Upload coverage results to Coveralls | ||
if: matrix.analysis | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
composer require php-coveralls/php-coveralls -n -W | ||
vendor/bin/php-coveralls --coverage_clover=clover.xml -v | ||
tests: | ||
name: Tests PHP ${{ matrix.php }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [ 7.4, 8.0, 8.1, 8.2, 8.3 ] | ||
include: | ||
- php: 8.2 | ||
analysis: true | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up PHP ${{ matrix.php }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: xdebug | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --no-suggest | ||
|
||
- name: Coding standards | ||
if: matrix.analysis | ||
run: composer sniffer:check | ||
|
||
- name: Static analysis | ||
if: matrix.analysis | ||
run: composer stan | ||
|
||
- name: Tests | ||
run: composer test:coverage | ||
|
||
- name: Upload coverage results to Coveralls | ||
if: matrix.analysis | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
composer require php-coveralls/php-coveralls -n -W | ||
vendor/bin/php-coveralls --coverage_clover=build/coverage/clover.xml -v |
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,18 @@ | ||
.*.swp | ||
.idea | ||
.phpunit.result.cache | ||
# Composer | ||
composer.lock | ||
/vendor | ||
|
||
# PHPUnit | ||
/.phpunit.cache | ||
.phpunit.result.cache | ||
|
||
# IDEs | ||
/.fleet | ||
/.idea | ||
/.vscode | ||
|
||
# Build artifacts and temporary files | ||
.DS_Store | ||
clover.xml | ||
coverage | ||
vendor | ||
/build | ||
/coverage |
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
File renamed without changes.
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,6 @@ | ||
parameters: | ||
level: 8 | ||
paths: | ||
- src | ||
ignoreErrors: | ||
- message: '#Method (.*) has parameter (.*) with generic class Slim\\App but does not specify its types: TContainerInterface#' |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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.