Skip to content

Commit d9822c5

Browse files
authored
Merge pull request #81 from Lomkit/fix/laravel-version
🐛 wrong tests for older laravel versions
2 parents 6c2e178 + 4287f7a commit d9822c5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
php-version: [ '8.1', '8.2' ]
18-
laravel-version: [ '^8.0', '^9.0', '^10.0' ]
18+
laravel-version: [ '^10.0' ]
1919
database: [ 'sqlite', 'mysql', 'pgsql' ]
2020

2121
name: Tests on PHP ${{ matrix.php-version }} with Laravel ${{ matrix.laravel-version }} and ${{ matrix.database }}
@@ -31,7 +31,7 @@ jobs:
3131
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
3232

3333
pgsql:
34-
image: postgres:10.8
34+
image: postgres:16
3535
env:
3636
POSTGRES_USER: postgres
3737
POSTGRES_PASSWORD: postgres
@@ -64,7 +64,7 @@ jobs:
6464
6565
- name: Install dependencies
6666
if: steps.composer-cache.outputs.cache-hit != 'true'
67-
run: composer update --with "illuminate/contracts=${{ matrix.laravel-version }}" --prefer-dist --no-progress
67+
run: composer require laravel/framework:${{ matrix.laravel-version }} -W --prefer-dist --no-progress
6868

6969
- name: Run test suite with Sqlite
7070
if: matrix.database == 'sqlite'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Laravel Rest Api is an elegant way to expose your app through an API, it takes f
66

77
## Requirements
88

9-
PHP 8.1+ and Laravel 8.0+
9+
PHP 8.1+ and Laravel 10.0+
1010

1111
## Documentation, Installation, and Usage Instructions
1212

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"require": {
1313
"php": "^8.0",
1414
"ext-json": "*",
15-
"illuminate/contracts": "^8.37|^9.0|^10.0",
16-
"illuminate/http": "^8.37|^9.0|^10.0",
17-
"illuminate/support": "^8.37|^9.0|^10.0"
15+
"illuminate/contracts": "^10.0",
16+
"illuminate/http": "^10.0",
17+
"illuminate/support": "^10.0"
1818
},
1919
"require-dev": {
2020
"guzzlehttp/guzzle": "^6.0|^7.0",
2121
"orchestra/testbench": "^8.5",
22-
"phpunit/phpunit": "^6.0|^7.0|^8.0|^9.0|^10.0"
22+
"phpunit/phpunit": "^8.0|^9.0|^10.0"
2323
},
2424
"autoload": {
2525
"psr-4": {

0 commit comments

Comments
 (0)