Skip to content

Commit

Permalink
Laravel 11.x Compatibility (#22)
Browse files Browse the repository at this point in the history
* Bump dependencies for Laravel 11
* Update GitHub Actions for Laravel 11
  • Loading branch information
laravel-shift authored Apr 10, 2024
1 parent aa67988 commit 48aa51c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 39 deletions.
75 changes: 41 additions & 34 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
name: tests

on:
push:
branches:
- "**"
pull_request:
types: [ ready_for_review, synchronize, opened ]
push:
branches:
- **
pull_request:
types:
- ready_for_review
- synchronize
- opened

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
laravel: [10.*]

name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
tools: composer:v2
coverage: xdebug

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update --dev
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
laravel: ['10.*', '11.*']
exclude:
- laravel: 11.*
php: 8.1

name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
tools: composer:v2
coverage: xdebug

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update --dev
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
],
"require": {
"php": "^8.1",
"illuminate/support": "^10.0",
"intervention/image": "^2.7",
"illuminate/container": "^10.0",
"illuminate/contracts": "^10.0",
"illuminate/support": "^10.0|^11.0",
"intervention/image": "^2.7|^3.4",
"illuminate/container": "^10.0|^11.0",
"illuminate/contracts": "^10.0|^11.0",
"ext-fileinfo": "*"
},
"require-dev": {
"orchestra/testbench": "^8.0"
"orchestra/testbench": "^8.0|^9.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 48aa51c

Please sign in to comment.