Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.1, 8.0]
laravel: ['9.*', '10.*', '11.*', '12.*']
stability: [prefer-lowest, prefer-stable]
os: [ ubuntu-latest, windows-latest ]
php: [ 8.2, 8.1, 8.0 ]
laravel: [ 9.*, 10.*, 11.*, 12.* ]
include:
- laravel: 9.*
- testbench: 7.*
testbench: 7.*
- laravel: 10.*
testbench: ^8.0
testbench: 8.*
- laravel: 11.*
testbench: ^9.0
testbench: 9.*
- laravel: 12.*
testbench: ^10.0
testbench: 10.*
exclude:
- laravel: 10.*
php: 8.0
Expand All @@ -41,7 +40,7 @@ jobs:
- laravel: 12.*
php: 8.0

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

steps:
- name: Checkout code
Expand All @@ -62,17 +61,17 @@ 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-dist --no-interaction

- name: List Installed Dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/pest

- name: Run PHPStan
shell: bash
run: |
LARAVEL_VERSION="${{ matrix.laravel }}"
LARAVEL_VERSION="${LARAVEL_VERSION%%.*}"
vendor/bin/phpstan analyse -c "phpstan-${LARAVEL_VERSION}.neon" src
vendor/bin/phpstan analyse -c "phpstan-${LARAVEL_VERSION}.neon" src