Skip to content

Laravel 11.x Compatibility (#22) #45

Laravel 11.x Compatibility (#22)

Laravel 11.x Compatibility (#22) #45

Workflow file for this run

name: tests
on:
push:
branches:
- **

Check failure on line 6 in .github/workflows/run-tests.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/run-tests.yaml

Invalid workflow file

You have an error in your yaml syntax on line 6
pull_request:
types:
- ready_for_review
- synchronize
- opened
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
laravel: ['10.*', '11.*']
exclude:
- laravel: 11.*
php: 8.1
name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd
tools: composer:v2
coverage: xdebug
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update --dev
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit