Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,43 @@ on:
push:
branches:
- master

pull_request:
types: [ opened, synchronize, reopened ]
types:
- opened
- synchronize
- reopened

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [ 8.1, 8.2, 8.3 ]
laravel: [ 10.*, 11.* ]
dependency-version: [ prefer-lowest, prefer-stable ]
php: [8.1, 8.2, 8.3]
laravel: ['10.*', '11.*', '12.*']
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*

- laravel: 10.*
testbench: 8.*

- laravel: 11.*
testbench: 9.*

- laravel: 12.*
testbench: 10.*
exclude:
# PHP 8.2 requires Laravel 9.33 at least, so skip lowest
- laravel: 9.*
php: 8.2
dependency-version: prefer-lowest

# Laravel 10 requires PHP 8.1
- laravel: 10.*
php: 8.0

# Laravel 11 requires PHP 8.2
- laravel: 11.*
php: 8.0

- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.1

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

Expand All @@ -68,5 +66,6 @@ jobs:
composer self-update ${{ matrix.composer-version }}
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
run: vendor/bin/phpunit
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
],
"require": {
"php": "^8.1",
"illuminate/support": "^10.0 || ^11.0"
"illuminate/support": "^10.0 || ^11.0 || ^12.0"
},
"require-dev": {
"orchestra/testbench": "^8.0 || ^9.0",
"orchestra/testbench": "^8.0 || ^9.0 || ^10.0",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^9.0 || ^10.0",
"phpunit/phpunit": "^9.0 || ^10.0 || ^11.5.3",
"laravel/pint": "^1.8"
},
"autoload": {
Expand Down