Skip to content

Commit

Permalink
chore: run tests for laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Mar 16, 2024
1 parent 79a8bb7 commit 3b87df3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
coverage: xdebug

- name: Get composer cache directory
Expand Down Expand Up @@ -52,15 +52,18 @@ jobs:
run: vendor/bin/pest --memory-limit=-1 --type-coverage --min=90

testing:
name: PHP ${{ matrix.php }} (Testing)
name: Laravel ${{ matrix.laravel }} (${{ matrix.php }})

runs-on: ubuntu-latest

strategy:
fail-fast: false

matrix:
laravel: [ '11.0', '10.0' ]
php: [ '8.3', '8.2', '8.1' ]
exclude:
- { laravel: '11.0', php: '8.1' }

steps:
- uses: actions/checkout@v4
Expand All @@ -78,8 +81,11 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ env.COMPOSER_DIR }}
key: ${{ runner.os }}-composer-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-php-${{ matrix.php }}-
key: ${{ runner.os }}-composer-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-laravel-

- name: Add illuminate/support to restrict Laravel testing version
run: composer require --no-update illuminate/support:~${{ matrix.laravel }}

- name: Install dependencies
run: composer update --no-progress --no-interaction
Expand Down

0 comments on commit 3b87df3

Please sign in to comment.