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

Laravel 11 Support #5

Merged
merged 12 commits into from
Jul 12, 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
36 changes: 36 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Unit Tests

on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
php: ['8.2']
laravel: [9.*, 10.*, 11.*]
include:
- php: 8.1
laravel: 9.*
- php: 8.1
laravel: 10.*

name: Unit Tests - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, php-xml, sqlite3
coverage: xdebug

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction

- name: Run test suite
run: composer run-script test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The entire intent of this library is to make JsonSchema feel like a first class

## Laravel Version Compatibility

This package supports Laravel `v9` and `v10`
This package supports Laravel `v9+`.

## Installation

Expand Down
14 changes: 8 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@
],
"license": "MIT",
"require": {
"laravel/framework": "^9.19 || ^10.0",
"laravel/framework": "^9.19 || ^10.0 || ^11.0",
"opis/json-schema": "^2.3",
"php": "^8.1"
},
"require-dev": {
"brianium/paratest": "^6.6",
"fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.1",
"orchestra/testbench": "^7.11",
"nunomaduro/collision": "^6.1|7.*|8.*",
"orchestra/testbench": "7.*|8.*|9.*",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^9.5.10",
"phpunit/phpunit": "~8.0|~9.0|^10.5",
"squizlabs/php_codesniffer": "^3.7"
},
"autoload": {
Expand Down Expand Up @@ -50,6 +49,9 @@
}
}
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
Loading