Skip to content

Commit

Permalink
laravel-11
Browse files Browse the repository at this point in the history
  • Loading branch information
MsNatali committed May 3, 2024
1 parent 3e9be25 commit 364823a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,31 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0, 8.1]
laravel: [8.*, 9.*]
stability: [prefer-lowest, prefer-stable]
php: [8.0, 8.1, 8.2, 8.3]
laravel: [8.*, 9.*, 10.*, 11.*]
include:
- laravel: 8.*
testbench: ^6.23
- laravel: 9.*
testbench: ^7.0
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1

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

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

steps:
- name: Checkout code
Expand All @@ -42,6 +52,6 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer update --prefer-stable --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/pest
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"mockery/mockery": "^1.4",
"orchestra/testbench": "^6.0||^7.0||^8.0",
"orchestra/testbench": "^6.0||^7.0||^8.0||^9.0",
"pestphp/pest": "^1.16||^2.0",
"php-parallel-lint/php-var-dump-check": "^0.5.0",
"phpunit/phpunit": "^9.0||^10.0"
"phpunit/phpunit": "^9.0||^10.0||^11.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 364823a

Please sign in to comment.