Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Laravel 8.x support #2

Merged
merged 15 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,24 @@ jobs:
fail-fast: true
matrix:
php: [8.2, 8.1]
laravel: [10.*, 9.*]
laravel: [10.*, 9.*, 8.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.5.*

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

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
Expand All @@ -42,4 +44,4 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest

- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ You can also enable [debugging mode](https://developers.google.com/analytics/dev
``` bash
composer test
```
or

``` bash
./vendor/bin/phpunit
```

## Security

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
],
"require": {
"php": "^8.1 || ^8.2",
"illuminate/bus": "^9.0 || ^10.0",
"illuminate/queue": "^9.0 || ^10.0",
"illuminate/http": "^9.0 || ^10.0",
"illuminate/validation": "^9.0 || ^10.0",
"illuminate/bus": "^8.0 || ^9.0 || ^10.0",
"illuminate/queue": "^8.0 || ^9.0 || ^10.0",
"illuminate/http": "^8.74 || ^9.0 || ^10.0",
"illuminate/validation": "^8.0 || ^9.0 || ^10.0",
"guzzlehttp/guzzle": "^7.5"
},
"require-dev": {
"mockery/mockery": "^1.4.4",
"nesbot/carbon": "^2.66",
"orchestra/testbench": "^7.0 || ^8.0",
"orchestra/testbench": "^6.20 || ^7.0 || ^8.0",
"phpunit/phpunit": "^9.5"
},
"autoload": {
Expand Down