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.x Compatibility #48

Closed
Closed
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: 25 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,51 @@
name: Tests

on: [push, pull_request]
on:
- push
- pull_request

jobs:
tests:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: ["8.1", "8.2"]
laravel: ["^9.0", "^10.0"]
php: ["8.1", "8.2", "8.3"]
laravel: [^10.0, ^11.0]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: "^9.0"
testbench: "^7.0"
- laravel: "^10.0"
testbench: "^8.0"
- laravel: ^10.0
testbench: ^8.0
- laravel: ^11.0
testbench: ^9.0
exclude:
- laravel: ^11.0
php: "8.1"

name: Laravel ${{ matrix.laravel }} PHP${{ matrix.php }} on ${{ matrix.os }}

container:
image: lorisleiva/laravel-docker:${{ matrix.php }}

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

- name: Validate composer files
run: composer validate

- name: Cache dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: /composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Install dependencies
run: |
composer require --prefer-dist --no-progress --no-suggest --no-interaction "illuminate/support:${{ matrix.laravel }}"
composer install --prefer-dist --no-progress --no-suggest --no-interaction
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction

- name: Run tests
run: phpunit
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
],
"require": {
"php": "^8.1",
"illuminate/support": "^9.0|^10.0",
"illuminate/support": "^10.0|^11.0",
"hoa/compiler": "^3.17",
"sanmai/hoa-protocol": "^1.17"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"orchestra/testbench": "^7.0|^8.0"
"orchestra/testbench": "^9.0",
"phpunit/phpunit": "^9.0|^10.5"
},
"autoload": {
"psr-4": {
"psr-4": {
"Lorisleiva\\LaravelSearchString\\": "src"
}
},
Expand Down
Loading