Add support for Laravel 11 #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
test: | |
# not self-hosted, because it's a public repo | |
runs-on: ubuntu-latest | |
# we want to run it on combination of PHP 8.1+ and Laravel 9.1+ | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.2', '8.3'] | |
laravel: ['^10.0', '^11.0'] | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: zip, gd, sqlite, json, gmp, bcmath | |
coverage: none | |
- name: Ensure we use specific version of Laravel, and install other dependencies | |
env: | |
LARAVEL_VERSION: ${{ matrix.laravel }} | |
run: composer require laravel/framework $LARAVEL_VERSION --no-interaction --no-scripts --prefer-dist | |
- name: Execute tests | |
run: vendor/bin/phpunit |