Skip to content

Commit

Permalink
Merge pull request #78 from laravel-shift/l11-compatibility
Browse files Browse the repository at this point in the history
Laravel 11.x Compatibility
  • Loading branch information
freekmurze authored Mar 2, 2024
2 parents f017596 + 002a176 commit 350a4ca
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 45 deletions.
89 changes: 49 additions & 40 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,53 @@
name: run-tests

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

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.2, 8.1, 8.0]
laravel: [9.*, 8.*, 10.*]
dependency-version: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
exclude:
- laravel: 10.*
php: 8.0

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

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, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

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

strategy:
fail-fast: false
matrix:
php: [8.2, 8.1, 8.0]
laravel: ['8.*', '9.*', '10.*', '11.*']
dependency-version: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.1
- laravel: 11.*
php: 8.0

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

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, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- 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 @@ -19,17 +19,17 @@
"require": {
"php": "^8.0",
"ext-json": "*",
"illuminate/contracts": "^8.71|^9.0|^10.0",
"illuminate/filesystem": "^8.71|^9.0|^10.0",
"illuminate/support": "^8.71|^9.0|^10.0",
"illuminate/contracts": "^8.71|^9.0|^10.0|^11.0",
"illuminate/filesystem": "^8.71|^9.0|^10.0|^11.0",
"illuminate/support": "^8.71|^9.0|^10.0|^11.0",
"league/commonmark": "^1.0|^2.0",
"spatie/yaml-front-matter": "^2.0",
"symfony/yaml": "^4.0|^5.0|^6.0|^7.0"
},
"require-dev": {
"league/flysystem": "^1.0.8|^3.0",
"orchestra/testbench": "^6.23|^7.0|^8.0",
"phpunit/phpunit": "^9.4"
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
"phpunit/phpunit": "^9.4|^10.5"
},
"config": {
"sort-packages": true
Expand Down

0 comments on commit 350a4ca

Please sign in to comment.