Skip to content

Commit

Permalink
Update for Laravel 11 and phpunit 9 (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
abkrim committed Mar 15, 2024
1 parent d571948 commit 03eac0c
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 355 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Expand Up @@ -13,13 +13,18 @@ jobs:
fail-fast: false
matrix:
php: [ 8.2, 8.1 ]
laravel: [ 10.*, 9.* ]
laravel: [ 11.*, 10.*, 9.* ]
dependency-version: [ prefer-lowest, prefer-stable ]
include:
- laravel: 11.*
testbench: ^9.0
- laravel: 10.*
testbench: ^8.0
- laravel: 9.*
testbench: ^7.0
exclude:
- laravel: 11.*
php: 8.1

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

Expand Down Expand Up @@ -47,7 +52,7 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Install dependencies Laravel 10
if: ${{ contains(matrix.laravel, '10.*') }}
if: ${{ contains(matrix.laravel, '10.*') || contains(matrix.laravel, '11.*') }}
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:>=2.62.1" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
Expand All @@ -56,5 +61,5 @@ jobs:
run: composer test:coverage

- name: Type check
if: ${{ contains(matrix.laravel, '10.*') && contains(matrix.dependency-version, 'prefer-stable') }}
if: ${{ contains(matrix.laravel, '11.*') && contains(matrix.dependency-version, 'prefer-stable') }}
run: composer type:check
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -4,8 +4,10 @@ coverage
.DS_store
.idea/
.phpunit.result.cache
.phpunit.cache/
.php-cs-fixer.cache
phpstan.neon
coverage.xml
node_modules
docs/.vitepress/cache
.phpunit.cache
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -16,12 +16,12 @@
],
"require": {
"php": "^8.1|^8.2",
"illuminate/support": "^9.0|^10.0"
"illuminate/support": "^9.0|^10.0|^11.0"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^2.13",
"barryvdh/laravel-ide-helper": "^2.13|^3.0",
"friendsofphp/php-cs-fixer": "^3.22",
"orchestra/testbench": "^7.0|^8.0",
"orchestra/testbench": "^7.0|^8.0|^9.0",
"pestphp/pest": "^1.21 | ^2.0",
"pestphp/pest-plugin-type-coverage": "^2.0",
"spatie/laravel-ray": "^1.32"
Expand Down

0 comments on commit 03eac0c

Please sign in to comment.