Skip to content

Commit ac4c4f3

Browse files
committed
Support Laravel 11
1 parent ee3fdef commit ac4c4f3

File tree

4 files changed

+62
-4
lines changed

4 files changed

+62
-4
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'main'
1111

1212
jobs:
13-
build:
13+
build_php82:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
@@ -19,7 +19,7 @@ jobs:
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
@@ -39,3 +39,26 @@ jobs:
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
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"license": "MIT",
2121
"require": {
22-
"php": "^8.2",
22+
"php": ">=8.2",
2323
"laravel/framework": "^10|dev-master"
2424
},
2525
"require-dev": {

0 commit comments

Comments
 (0)