Skip to content

Commit

Permalink
Laravel 11.x Compatibility (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift authored Mar 20, 2024
1 parent d092b4c commit 08ad48e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
54 changes: 34 additions & 20 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,51 @@
name: PHP

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

jobs:
run:
runs-on: ubuntu-latest

strategy:
max-parallel: 15
matrix:
laravel-version: ['^8.0', '^9.0', '^10.0']
laravel-version: ['11.0', ^8.0, ^9.0, ^10.0]
php-versions: ['8.0', '8.1', '8.2']
exclude:
- laravel-version: ^8.0
php-version: 8.2
- laravel-version: ^10.0
php-version: 8.0
- laravel-version: '11.0'
php-versions: '8.0'
- laravel-version: '11.0'
php-versions: '8.1'

name: PHP ${{ matrix.php-versions }} on ${{ matrix.laravel-version }}

steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xdebug
coverage: xdebug
- name: Install dependencies
run: |
composer require --no-update --no-interaction "illuminate/support:${{ matrix.laravel-version }}" satooshi/php-coveralls
composer update --no-interaction --prefer-dist --no-suggest
- name: Lint composer.json
run: composer validate
- name: Run Tests
run: composer test:ci
- name: Upload Coverage
run: bash <(curl -s https://codecov.io/bash)
- name: Checkout
uses: actions/checkout@master

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

- name: Install dependencies
run: |
composer require --no-update --no-interaction "illuminate/support:${{ matrix.laravel-version }}" satooshi/php-coveralls
composer update --no-interaction --prefer-dist --no-suggest
- name: Lint composer.json
run: composer validate

- name: Run Tests
run: composer test:ci

- name: Upload Coverage
run: bash <(curl -s https://codecov.io/bash)
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
],
"require": {
"php": "^8.0 | ^8.1",
"illuminate/support": "^8.0 | ^9.0 | ^10.0"
"illuminate/support": "^8.0 | ^9.0 | ^10.0 | ^11.0"
},
"require-dev": {
"orchestra/testbench": "^7.0 |^8.0",
"orchestra/testbench": "^7.0 |^8.0 | ^9.0",
"phpunit/phpunit": "^9.0 | ^10.0",
"timacdonald/log-fake": "^2"
},
Expand Down

0 comments on commit 08ad48e

Please sign in to comment.