Skip to content

Commit

Permalink
Add Laravel 11 Support on tests
Browse files Browse the repository at this point in the history
Include **Laravel 11** and **PHP 8.3** on the test matrix
  • Loading branch information
dfsmania authored Mar 16, 2024
1 parent 21b94f6 commit 22c9400
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.3, 7.4, 8.0, 8.1, 8.2]
laravel: [7.*, 8.*, 9.*, 10.*]
php: [7.3, 7.4, 8.0, 8.1, 8.2, 8.3]
laravel: [7.*, 8.*, 9.*, 10.*, 11.*]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 7.*
Expand All @@ -21,13 +21,19 @@ jobs:
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 7.*
php: 8.1
- laravel: 7.*
php: 8.2
- laravel: 7.*
php: 8.3
- laravel: 8.*
php: 8.2
- laravel: 8.*
php: 8.3
- laravel: 9.*
php: 7.3
- laravel: 9.*
Expand All @@ -38,18 +44,26 @@ jobs:
php: 7.4
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 7.3
- laravel: 11.*
php: 7.4
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1

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

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
Expand All @@ -72,7 +86,7 @@ jobs:

# Upload coverage only for latest versions.
- name: Upload coverage to scrutinizer-ci
if: matrix.php == '8.2' && matrix.laravel == '10.*' && matrix.stability == 'prefer-stable'
if: matrix.php == '8.3' && matrix.laravel == '11.*' && matrix.stability == 'prefer-stable'
run: |
vendor/bin/phpunit --testsuite Laravel --coverage-clover=coverage.clover
vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover

0 comments on commit 22c9400

Please sign in to comment.