File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 uses : shivammathur/setup-php@v2
2626 with :
2727 php-version : ${{ matrix.php-versions }}
28- coverage : none
2928
3029 - name : Check PHP Version
3130 run : php -v
4241 - name : Install dependencies
4342 run : composer install --prefer-dist --no-progress --no-suggest
4443
45- - name : Run test suite
46- run : composer test:all
44+ - name : Run PHP CodeSniffer
45+ run : composer sniffer:check
46+
47+ - name : Run PHPStan
48+ run : composer stan
49+
50+ - name : Run tests
51+ if : ${{ matrix.php-versions != '8.4' }}
52+ run : composer test
53+
54+ - name : Run tests with coverage
55+ if : ${{ matrix.php-versions == '8.4' }}
56+ run : composer test:coverage
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33[ ![ Latest Version on Packagist] ( https://img.shields.io/github/release/odan/session.svg )] ( https://github.com/odan/session/releases )
44[ ![ Software License] ( https://img.shields.io/badge/license-MIT-brightgreen.svg )] ( LICENSE )
55[ ![ Build Status] ( https://github.com/odan/session/workflows/build/badge.svg )] ( https://github.com/odan/session/actions )
6- [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/odan/session/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/odan/session/?branch=master )
7- [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/odan/session/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/odan/session/?branch=master )
86[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/odan/session.svg )] ( https://packagist.org/packages/odan/session/stats )
97
108A middleware (PSR-15) oriented session and flash message handler for PHP.
Original file line number Diff line number Diff line change 11{
22 "name" : " odan/session" ,
3- "type" : " library" ,
43 "description" : " A Slim session handler" ,
4+ "license" : " MIT" ,
5+ "type" : " library" ,
56 "keywords" : [
67 " slim" ,
78 " session"
89 ],
910 "homepage" : " https://github.com/odan/session" ,
10- "license" : " MIT" ,
1111 "require" : {
1212 "php" : " ~8.2.0 || ~8.3.0 || ~8.4.0" ,
1313 "psr/http-message" : " ^1 || ^2" ,
1616 },
1717 "require-dev" : {
1818 "friendsofphp/php-cs-fixer" : " ^3" ,
19- "middlewares/utils" : " ^3" ,
19+ "middlewares/utils" : " ^3 || ^4 " ,
2020 "nyholm/psr7" : " ^1.5" ,
2121 "phpstan/phpstan" : " ^2" ,
2222 "phpunit/phpunit" : " ^11" ,
2323 "squizlabs/php_codesniffer" : " ^3"
2424 },
25+ "autoload" : {
26+ "psr-4" : {
27+ "Odan\\ Session\\ " : " src/"
28+ }
29+ },
30+ "autoload-dev" : {
31+ "psr-4" : {
32+ "Odan\\ Session\\ Test\\ " : " tests/"
33+ }
34+ },
35+ "config" : {
36+ "sort-packages" : true
37+ },
2538 "scripts" : {
2639 "cs:check" : [
2740 " @putenv PHP_CS_FIXER_IGNORE_ENV=1" ,
28- " php-cs-fixer fix --dry-run --format=txt --verbose --config=.cs.php --ansi"
41+ " php-cs-fixer fix --dry-run --format=txt --verbose --diff -- config=.cs.php --ansi"
2942 ],
3043 "cs:fix" : [
3144 " @putenv PHP_CS_FIXER_IGNORE_ENV=1" ,
4558 " @putenv XDEBUG_MODE=coverage" ,
4659 " phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/coverage/clover.xml --coverage-html build/coverage --coverage-text"
4760 ]
48- },
49- "autoload" : {
50- "psr-4" : {
51- "Odan\\ Session\\ " : " src/"
52- }
53- },
54- "autoload-dev" : {
55- "psr-4" : {
56- "Odan\\ Session\\ Test\\ " : " tests/"
57- }
58- },
59- "config" : {
60- "sort-packages" : true
6161 }
6262}
You can’t perform that action at this time.
0 commit comments