Skip to content

Commit

Permalink
laravel-11 (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Ms_Natali <[email protected]>
  • Loading branch information
MsNatali and MsNatali authored May 7, 2024
1 parent 9444bb3 commit 7a8289d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,27 @@ on:

jobs:
test:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1]
laravel: [8.*, 9.*]
stability: [prefer-lowest, prefer-stable]
php: [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: 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 +48,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 @@ -11,7 +11,7 @@
"license": "MIT",
"require": {
"php": "^8.1",
"illuminate/contracts": "^8.37 || ^9.0 || ^10.0",
"illuminate/contracts": "^8.37 || ^9.0 || ^10.0 || ^11.0",
"ensi/initial-event-propagation": "^0.2"
},
"autoload": {
Expand All @@ -25,7 +25,7 @@
}
},
"require-dev": {
"orchestra/testbench": "^6.23 || ^7.0 || ^8.0",
"orchestra/testbench": "^6.0||^7.0||^8.0||^9.0",
"pestphp/pest": "^1.22 || ^2.0",
"pestphp/pest-plugin-laravel": "^1.1 || ^2.0",
"spatie/laravel-ray": "^1.23",
Expand Down

0 comments on commit 7a8289d

Please sign in to comment.