File tree Expand file tree Collapse file tree 2 files changed +66
-2
lines changed Expand file tree Collapse file tree 2 files changed +66
-2
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on : [push, pull_request]
3+
4+ jobs :
5+ php_cs_fixer :
6+ name : PHP-CS-Fxier
7+ runs-on : ubuntu-latest
8+ strategy :
9+ fail-fast : false
10+ matrix :
11+ php_version :
12+ - 7.4
13+ perfer :
14+ - stable
15+ container :
16+ image : nauxliu/php-ci-image:${{ matrix.php_version }}
17+ steps :
18+ - uses : actions/checkout@master
19+ - name : Install Dependencies
20+ run : composer install --prefer-dist --no-interaction --no-suggest
21+ - name : Run PHP-CS-Fxier
22+ run : composer check-style
23+
24+ phpunit :
25+ name : PHP-${{ matrix.php_version }}-${{ matrix.perfer }}
26+ runs-on : ubuntu-latest
27+ strategy :
28+ fail-fast : false
29+ matrix :
30+ php_version :
31+ - 7.2
32+ - 7.3
33+ - 7.4
34+ perfer :
35+ - stable
36+ container :
37+ image : nauxliu/php-ci-image:${{ matrix.php_version }}
38+ steps :
39+ - uses : actions/checkout@master
40+ - name : Install Dependencies
41+ run : composer install --prefer-dist --no-interaction --no-suggest
42+ - name : Run PHPUnit
43+ run : ./vendor/bin/phpunit
44+
45+ L6_test :
46+ name : PHP-${{ matrix.php_version }}-${{ matrix.perfer }}
47+ runs-on : ubuntu-latest
48+ strategy :
49+ fail-fast : false
50+ matrix :
51+ php_version :
52+ - 7.4
53+ perfer :
54+ - stable
55+ container :
56+ image : nauxliu/php-ci-image:${{ matrix.php_version }}
57+ steps :
58+ - uses : actions/checkout@master
59+ - name : Install laravel/framework:^6.0
60+ run : composer require "laravel/framework:^6.0"
61+ - name : Install Dependencies
62+ run : composer install --prefer-dist --no-interaction --no-suggest
63+ - name : Run PHPUnit
64+ run : composer test
Original file line number Diff line number Diff line change 99 }
1010 ],
1111 "require" : {
12- "laravel/framework" : " ^7.14|^8.0" ,
12+ "laravel/framework" : " ^6.20|^ 7.14|^8.0" ,
1313 "laravel/passport" : " ^9.2|^10.0"
1414 },
1515 "require-dev" : {
1616 "brainmaestro/composer-git-hooks" : " ^2.7" ,
1717 "friendsofphp/php-cs-fixer" : " ^2.15" ,
18- "orchestra/testbench" : " ^5.3" ,
18+ "orchestra/testbench" : " ^4.16|^ 5.3" ,
1919 "mockery/mockery" : " ^1.0" ,
2020 "phpunit/phpunit" : " ^9.0"
2121 },
You can’t perform that action at this time.
0 commit comments