Skip to content

Commit

Permalink
skip php8.1 w/ laravel 11 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yordadev committed Apr 18, 2024
1 parent aebd740 commit bd50c8c
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,33 @@ jobs:
php: [8.1, 8.2, 8.3]
laravel: [9.*, 10.*, 11.*]
include:
- laravel: 11.*
- php: 8.1
laravel: 11.*
testbench: 9.*
- laravel: 10.*
skip: true
- php: 8.2
laravel: 11.*
testbench: 9.*
- php: 8.3
laravel: 11.*
testbench: 9.*
- php: 8.1
laravel: 10.*
testbench: 8.*
- php: 8.2
laravel: 10.*
testbench: 8.*
- laravel: 9.*
- php: 8.3
laravel: 10.*
testbench: 8.*
- php: 8.1
laravel: 9.*
testbench: 7.*
- php: 8.2
laravel: 9.*
testbench: 7.*
- php: 8.3
laravel: 9.*
testbench: 7.*

name: PHP${{ matrix.php }} - Laravel ${{ matrix.laravel }}
Expand All @@ -41,7 +63,12 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
if [ "${{ matrix.skip }}" == "true" ]; then
echo "Skipping PHP ${{ matrix.php }} with Laravel 11."
exit 0
fi
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-suggest
- name: Execute tests
if: ${{ matrix.skip != 'true' }}
run: vendor/bin/phpunit

0 comments on commit bd50c8c

Please sign in to comment.