Skip to content

Commit

Permalink
Merge pull request #3 from InnoGE/add-laravel-11-support
Browse files Browse the repository at this point in the history
Add Laravel 11 Support
geisi authored Mar 11, 2024
2 parents 5ee44ff + ce28424 commit 955968b
Showing 3 changed files with 15 additions and 19 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -10,22 +10,26 @@ jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1]
laravel: [10.*]
php: [8.3, 8.2, 8.1]
laravel: ["^11.0", "^10.0"]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
- laravel: "^11.0"
testbench: 9.*
- laravel: "^10.0"
testbench: 8.*
carbon: ^2.63
exclude:
- laravel: "^11.0"
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
@@ -41,11 +45,8 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D
composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update
composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }}
- name: Execute tests
run: vendor/bin/pest --ci
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -18,14 +18,14 @@
"require": {
"php": "^8.1",
"spatie/laravel-package-tools": "^1.14.0",
"illuminate/contracts": "^10.0",
"illuminate/contracts": "^10.0|^11.0",
"filament/forms": "^3.0"
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.8",
"nunomaduro/collision": "^7.8|^8.0",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^8.17",
"orchestra/testbench": "^8.17|^9.0",
"pestphp/pest": "^2.28",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
5 changes: 0 additions & 5 deletions tests/ExampleTest.php

This file was deleted.

0 comments on commit 955968b

Please sign in to comment.