Skip to content

Merge pull request #1 from AgentSoftware/claude/modernize-php8-larave… #3

Merge pull request #1 from AgentSoftware/claude/modernize-php8-larave…

Merge pull request #1 from AgentSoftware/claude/modernize-php8-larave… #3

Workflow file for this run

name: Tests
on:
push:
branches: [2.0, 3.0, main, master]
pull_request:
branches: [2.0, 3.0, main, master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3]
laravel: [10.*, 11.*, 12.*]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
- laravel: 12.*
testbench: 10.*
exclude:
- php: 8.1
laravel: 11.*
- php: 8.1
laravel: 12.*
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: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
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
- name: Execute tests
run: vendor/bin/phpunit