Skip to content

Commit d7cc97f

Browse files
authored
Merge pull request #2 from Meeshalk/Chore/update-version-support-and-github-actions
Chore/update version support and GitHub actions * Removes support of php7 * And with that removed support for Laravel 6, 7 & 8
2 parents b7c51c0 + 8b58a2b commit d7cc97f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
php: [7.4, 7.3, 7.2]
13+
php: [8.3, 8.2, 8.1, 8.0]
1414
stability: [prefer-lowest, prefer-stable]
1515

1616
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
1717

1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121

2222
- name: Cache dependencies
23-
uses: actions/cache@v1
23+
uses: actions/cache@v4
2424
with:
2525
path: ~/.composer/cache/files
2626
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
@@ -36,4 +36,4 @@ jobs:
3636
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
3737

3838
- name: Execute tests
39-
run: vendor/bin/phpunit --verbose
39+
run: vendor/bin/phpunit

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
"description": "Simple trait to check ownership of models/objects",
44
"keywords": ["laravel", "ownership", "ownable", "owns"],
55
"require": {
6-
"illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
7-
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
6+
"php": "^8.0|^8.1|^8.2|^8.3",
7+
"illuminate/database": "^9.0|^10.0|^11.0|^12.0",
8+
"illuminate/support": "^9.0|^10.0|^11.0|^12.0",
89
"laravel/legacy-factories": "^1.3"
910
},
1011
"require-dev": {
11-
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0|^10.0",
12-
"phpunit/phpunit": "^7.5.15|^8.4|^9.0|^10.0|^11.0"
12+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
13+
"phpunit/phpunit": "^9.0|^10.0|^11.0"
1314
},
1415
"autoload": {
1516
"psr-4": {

0 commit comments

Comments
 (0)