Skip to content

Commit fa43772

Browse files
authored
Add Laravel 8.x support (#2)
Credit to @droidlabour
1 parent 9f44020 commit fa43772

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,24 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
php: [8.2, 8.1]
12-
laravel: [10.*, 9.*]
12+
laravel: [10.*, 9.*, 8.*]
1313
dependency-version: [prefer-lowest, prefer-stable]
1414
include:
1515
- laravel: 10.*
1616
testbench: 8.*
1717
- laravel: 9.*
1818
testbench: 7.*
19+
- laravel: 8.*
20+
testbench: 6.5.*
1921

2022
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2123

2224
steps:
2325
- name: Checkout code
24-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2527

2628
- name: Cache dependencies
27-
uses: actions/cache@v2
29+
uses: actions/cache@v4
2830
with:
2931
path: ~/.composer/cache/files
3032
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
@@ -42,4 +44,4 @@ jobs:
4244
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
4345
4446
- name: Execute tests
45-
run: vendor/bin/phpunit
47+
run: vendor/bin/phpunit

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ You can also enable [debugging mode](https://developers.google.com/analytics/dev
188188
``` bash
189189
composer test
190190
```
191+
or
192+
193+
``` bash
194+
./vendor/bin/phpunit
195+
```
191196

192197
## Security
193198

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@
3333
],
3434
"require": {
3535
"php": "^8.1 || ^8.2",
36-
"illuminate/bus": "^9.0 || ^10.0",
37-
"illuminate/queue": "^9.0 || ^10.0",
38-
"illuminate/http": "^9.0 || ^10.0",
39-
"illuminate/validation": "^9.0 || ^10.0",
36+
"illuminate/bus": "^8.0 || ^9.0 || ^10.0",
37+
"illuminate/queue": "^8.0 || ^9.0 || ^10.0",
38+
"illuminate/http": "^8.74 || ^9.0 || ^10.0",
39+
"illuminate/validation": "^8.0 || ^9.0 || ^10.0",
4040
"guzzlehttp/guzzle": "^7.5"
4141
},
4242
"require-dev": {
4343
"mockery/mockery": "^1.4.4",
4444
"nesbot/carbon": "^2.66",
45-
"orchestra/testbench": "^7.0 || ^8.0",
45+
"orchestra/testbench": "^6.20 || ^7.0 || ^8.0",
4646
"phpunit/phpunit": "^9.5"
4747
},
4848
"autoload": {

0 commit comments

Comments
 (0)