Skip to content

Add multi example

Add multi example #24

name: PHP 8.2/8.3
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-20.04
name: PHP ${{ matrix.php }}
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
include:
- php: 8.2
laravel: 10.*
testbench: 8.*
- php: 8.3
laravel: 11.*
testbench: 9.*
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- 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: Run tests
run: vendor/bin/phpunit --testsuite=Feature --colors=always