43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, develop ]
|
|
pull_request:
|
|
branches: [ master, develop ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
php: [8.2, 8.3]
|
|
laravel: [11.*, 12.*]
|
|
include:
|
|
- laravel: 11.*
|
|
testbench: 9.*
|
|
- laravel: 12.*
|
|
testbench: 9.*
|
|
|
|
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-update --no-interaction
|
|
composer update --prefer-dist --no-interaction --no-progress
|
|
|
|
- name: Execute tests
|
|
run: vendor/bin/phpunit
|