Skip to content

Commit

Permalink
Laravel 11 (#18)
Browse files Browse the repository at this point in the history
* Laravel 11

* add php8.3, L11 to testing matrix

* include testbench in L11 setup

* composer update

* update collision

* try again

* Revert "try again"

This reverts commit a63d147.

* fix collision dep for L10

* exclude P8.1 L11 from matix

* adds macos to testing matrix

* temporarily remove fail-fast

* set minimum testbench version in L10 test matrix

* add lowest valid canvas package version to test matrix

* fix canvas version for L11

* bump minimum carbon version for test matrix

* try again

* update carbon version for testing matrix

* update actions/checkout to v4 (node16->20)

* re-enable fail-fast feature in CI

* add missing version constraint

---------

Co-authored-by: Len Woodward <Len@ProjektGopher.com>
  • Loading branch information
edgrosvenor and ProjektGopher authored Mar 19, 2024
1 parent 3d89f45 commit 1a445d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,26 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.1]
laravel: [10.*]
os: [macos-latest, ubuntu-latest, windows-latest]
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
canvas: 9.*
carbon: 2.*
- laravel: 10.*
testbench: 8.*
carbon: ^2.63
canvas: ^8.11
carbon: 2.*
exclude:
- laravel: 11.*
php: 8.1

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

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -41,7 +47,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/canvas:${{ matrix.canvas }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"require": {
"php": "^8.1",
"spatie/laravel-package-tools": "^1.14.0",
"illuminate/contracts": "^10.0"
"illuminate/contracts": "^10.0|^11.0"
},
"require-dev": {
"larastan/larastan": "^2.9",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.9",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^8.0",
"nunomaduro/collision": "^7.0|^8.0",
"orchestra/testbench": "^8.11|^9.0",
"pestphp/pest": "^2.0",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
Expand Down Expand Up @@ -68,4 +68,4 @@
},
"minimum-stability": "dev",
"prefer-stable": true
}
}

0 comments on commit 1a445d9

Please sign in to comment.