Skip to content

ci: drop PHP 8.1, add Laravel 12 + PHP 8.4 to test matrix #3

ci: drop PHP 8.1, add Laravel 12 + PHP 8.4 to test matrix

ci: drop PHP 8.1, add Laravel 12 + PHP 8.4 to test matrix #3

Workflow file for this run

name: run-tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
laravel: ['10.*', '11.*', '12.*']
include:
- laravel: '10.*'
testbench: '8.*'
- laravel: '11.*'
testbench: '9.*'
- laravel: '12.*'
testbench: '10.*'
exclude:
- laravel: '10.*'
php: '8.4'
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, dom, curl, libxml, mbstring
coverage: none
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: composer test