File tree Expand file tree Collapse file tree 4 files changed +62
-4
lines changed Expand file tree Collapse file tree 4 files changed +62
-4
lines changed Original file line number Diff line number Diff line change 1010 - ' main'
1111
1212jobs :
13- build :
13+ build_php82 :
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v3
1919 - name : Setup PHP with coverage driver
2020 uses : shivammathur/setup-php@v2
2121 with :
22- php-version : ${{ matrix.version }}
22+ php-version : 8.2
2323 coverage : pcov
2424
2525 - name : Bootstrap project
3939 with :
4040 token : ${{ secrets.CODECOV_TOKEN }}
4141 file : ./coverage.xml
42+
43+ build_php83 :
44+ runs-on : ubuntu-latest
45+ steps :
46+ - uses : actions/checkout@v3
47+ if : success()
48+
49+ - name : Setup PHP with coverage driver
50+ uses : shivammathur/setup-php@v2
51+ with :
52+ php-version : 8.3
53+ coverage : pcov
54+
55+ - name : Bootstrap project
56+ if : success()
57+ run : |
58+ php -v
59+ composer install --no-interaction
60+
61+ - name : PHPUnit tests with coverage
62+ if : success() && github.event.pull_request.draft == false
63+ run : |
64+ composer test
Original file line number Diff line number Diff line change 1+ name : Try Install Package (Laravel 10 & 11)
2+
3+ env :
4+ LOCAL_ENV : ${{ secrets.LOCAL_ENV }}
5+
6+ on :
7+ push :
8+ branches :
9+ - ' main'
10+
11+ jobs :
12+ build :
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ version : [ '^10.0', '^11.0' ]
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Setup PHP with coverage driver
20+ uses : shivammathur/setup-php@v2
21+ with :
22+ php-version : 8.2
23+ coverage : pcov
24+
25+ - name : Setup and install package on Laravel
26+ if : success()
27+ run : |
28+ sudo service mysql start
29+ mysql -uroot -proot -e "CREATE DATABASE priority_queue;"
30+ composer create-project laravel/laravel:${{ matrix.version }} laravel
31+ cd laravel
32+ composer require shipsaas/laravel-priority-queue
33+ php artisan vendor:publish --tag=priority-queue-migrations
34+ echo "$LOCAL_ENV" > .env
35+ php artisan migrate
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ A simple yet super effective method to skyrocketing your API responding times
2222> Laravel Resource Reducer is heavily inspired from GraphQL approach. ❤️
2323
2424## Supports
25- - Laravel 10+
25+ - Laravel 10 & 11
2626- PHP 8.2+
2727
2828### Compatibility
Original file line number Diff line number Diff line change 1919 ],
2020 "license" : " MIT" ,
2121 "require" : {
22- "php" : " ^ 8.2" ,
22+ "php" : " >= 8.2" ,
2323 "laravel/framework" : " ^10|dev-master"
2424 },
2525 "require-dev" : {
You can’t perform that action at this time.
0 commit comments