Skip to content

Commit

Permalink
support Laravel 12 (#80)
Browse files Browse the repository at this point in the history
* support laravel 12

* Update run-tests.yml

* add php 8.4 test
  • Loading branch information
atmonshi authored Feb 27, 2025
1 parent 3bd753f commit c53b24e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: run-tests

on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- main

jobs:
test:
Expand All @@ -13,14 +15,16 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.3, 8.2, 8.1, 8.0]
laravel: [11.*, 10.*, 9.*]
php: [8.4, 8.3, 8.2, 8.1, 8.0]
laravel: ['9.*', '10.*', '11.*', '12.*']
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 12.*
testbench: 10.*
carbon: ^3.8.4
- laravel: 11.*
testbench: 9.*
carbon:
^3.0
carbon: ^3.8.4
- laravel: 10.*
testbench: 8.*
carbon: ^2.63
Expand All @@ -34,6 +38,10 @@ jobs:
php: 8.1
- laravel: 11.*
php: 8.0
- laravel: 12.*
php: 8.1
- laravel: 12.*
php: 8.0

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

Expand All @@ -52,9 +60,11 @@ jobs:
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- 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: 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 @@ -25,16 +25,16 @@
],
"require": {
"php": "^8.0",
"illuminate/database": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"illuminate/database": "^9.0|^10.0|^11.0|^12.0",
"illuminate/support": "^9.0|^10.0|^11.0|^12.0",
"spatie/laravel-package-tools": "^1.14.1"
},
"require-dev": {
"laravel/pint": "^1.0",
"orchestra/testbench": "^7.0|^8.0|^9.0",
"phpunit/phpunit": "^9.5|^10.5",
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
"phpunit/phpunit": "^9.5|^10.5|^11.5.3",
"spatie/laravel-ray": "^1.29",
"vimeo/psalm": "^4.22|^5.22"
"vimeo/psalm": "^4.22|^5.22|^6.6"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit c53b24e

Please sign in to comment.