Skip to content

Commit

Permalink
Add Laravel 10 support (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmason30 authored Feb 8, 2023
1 parent ee82ae3 commit 860b823
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
php: ['8.1', '8.0', '7.4']
laravel: [8.*, 9.*]
os: [ubuntu-latest]
php: ['8.2', '8.1', '8.0', '7.4']
laravel: [8.*, 9.*, 10.*]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- laravel: 10.*
php: 8.0
- laravel: 10.*
php: 7.4
- laravel: 9.*
php: '7.4'
php: 7.4
include:
- laravel: 8.*
testbench: ^6.23
- laravel: 9.*
testbench: ^7.0
- laravel: 10.*
testbench: ^8.0

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

Expand Down Expand Up @@ -47,7 +53,7 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.4.0" "nesbot/carbon:>=2.62.1" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
],
"require": {
"php": "^7.4|^8.0",
"consoletvs/charts": "^6.5.6",
"spatie/laravel-dashboard": "^2.1"
"consoletvs/charts": "^6.6.0",
"spatie/laravel-dashboard": "^2.1.4"
},
"require-dev": {
"mockery/mockery": "^1.4",
"nunomaduro/laravel-mojito": "^0.2.6",
"orchestra/testbench": "^6.0|^7.0",
"orchestra/testbench": "^6.0|^7.0|^8.0",
"phpunit/phpunit": "^9.3",
"vimeo/psalm": "^4.3"
},
Expand Down

0 comments on commit 860b823

Please sign in to comment.