Skip to content

Commit 95e0e09

Browse files
authored
Merge pull request #5 from carsdotcom/bbene-laravel-11
Laravel 11 Support
2 parents 9e5e309 + 90c3fb2 commit 95e0e09

File tree

4 files changed

+2870
-1937
lines changed

4 files changed

+2870
-1937
lines changed

.github/workflows/tests.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Unit Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
php: ['8.2']
12+
laravel: [9.*, 10.*, 11.*]
13+
include:
14+
- php: 8.1
15+
laravel: 9.*
16+
- php: 8.1
17+
laravel: 10.*
18+
19+
name: Unit Tests - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
20+
steps:
21+
- uses: actions/checkout@v1
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
extensions: mbstring, php-xml, sqlite3
28+
coverage: xdebug
29+
30+
- name: Install dependencies
31+
run: |
32+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
33+
composer update --prefer-dist --no-interaction
34+
35+
- name: Run test suite
36+
run: composer run-script test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The entire intent of this library is to make JsonSchema feel like a first class
1414

1515
## Laravel Version Compatibility
1616

17-
This package supports Laravel `v9` and `v10`
17+
This package supports Laravel `v9+`.
1818

1919
## Installation
2020

composer.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@
1010
],
1111
"license": "MIT",
1212
"require": {
13-
"laravel/framework": "^9.19 || ^10.0",
13+
"laravel/framework": "^9.19 || ^10.0 || ^11.0",
1414
"opis/json-schema": "^2.3",
1515
"php": "^8.1"
1616
},
1717
"require-dev": {
18-
"brianium/paratest": "^6.6",
1918
"fakerphp/faker": "^1.9.1",
2019
"mockery/mockery": "^1.4.4",
21-
"nunomaduro/collision": "^6.1",
22-
"orchestra/testbench": "^7.11",
20+
"nunomaduro/collision": "^6.1|7.*|8.*",
21+
"orchestra/testbench": "7.*|8.*|9.*",
2322
"phpstan/phpstan": "^1.8",
24-
"phpunit/phpunit": "^9.5.10",
23+
"phpunit/phpunit": "~8.0|~9.0|^10.5",
2524
"squizlabs/php_codesniffer": "^3.7"
2625
},
2726
"autoload": {
@@ -50,6 +49,9 @@
5049
}
5150
}
5251
},
52+
"scripts": {
53+
"test": "vendor/bin/phpunit"
54+
},
5355
"minimum-stability": "dev",
5456
"prefer-stable": true
55-
}
57+
}

0 commit comments

Comments
 (0)