File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ run-tests :
7+ name : Tests with PHP ${{ matrix.php-version }} (Composer ${{ matrix.dependencies }})
8+ runs-on : ubuntu-latest
9+ strategy :
10+ matrix :
11+ include :
12+ - php-version : 7.4
13+ dependencies : " --prefer-stable"
14+ test_coverage : " yes"
15+ - php-version : 7.4
16+ dependencies : " --prefer-lowest --prefer-stable"
17+ test_coverage : " no"
18+ # - php-version: 8.0
19+ # dependencies: "--prefer-stable"
20+ # test_coverage: false
21+ # - php-version: 8.0
22+ # dependencies: "--prefer-lowest --prefer-stable"
23+ # test_coverage: false
24+ # - php-version: 8.1
25+ # dependencies: "--prefer-stable"
26+ # test_coverage: false
27+ # - php-version: 8.1
28+ # dependencies: "--prefer-lowest --prefer-stable"
29+ # test_coverage: false
30+
31+ steps :
32+ - name : Setup PHP
33+ uses : shivammathur/setup-php@v2
34+ with :
35+ php-version : ${{ matrix.php-version }}
36+ extensions : xdebug
37+ tools : composer:2.4.4
38+
39+ - name : Checkout
40+ uses : actions/checkout@v3
41+
42+ - name : Install composer dependencies
43+ run : composer update --prefer-source ${{ matrix.dependencies }}
44+
45+ - name : Run php-cs-fixer
46+ run : vendor/bin/php-cs-fixer fix -v --diff --dry-run
47+
48+ - name : Run tests (without coverage)
49+ if : ${{ matrix.test_coverage == 'no' }}
50+ run : vendor/bin/phpunit
51+
52+ - name : Run tests (with coverage)
53+ if : ${{ matrix.test_coverage == 'yes' }}
54+ run : php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml
55+
56+ - name : Run coveralls
57+ if : ${{ matrix.test_coverage == 'yes' }}
58+ run : vendor/bin/coveralls
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3030 "laminas/laminas-view" : " ^2.9.0"
3131 },
3232 "require-dev" : {
33- "friendsofphp/php-cs-fixer" : " ^2.16.1" ,
33+ "friendsofphp/php-cs-fixer" : " ^2.19.3" ,
34+ "laminas/laminas-console" : " ^2.6" ,
35+ "laminas/laminas-mvc" : " ^3.1" ,
36+ "phpspec/prophecy" : " ^1.15" ,
3437 "phpunit/phpunit" : " ^8.5.1" ,
35- "php-coveralls/php-coveralls" : " ^2.4.3" ,
36- "laminas/laminas-mvc" : " ^3.1"
38+ "satooshi/php-coveralls" : " ^2.4.3"
3739 },
3840 "suggest" : {
3941 "laminas/laminas-mvc" : " For using the router in the UriPath strategy"
You can’t perform that action at this time.
0 commit comments