Skip to content

tests

tests #393

Workflow file for this run

name: tests
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
php-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
php: [8.3, 8.2]
laravel: [10.*, 11.*]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
include:
- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
dependency-version: prefer-lowest
- laravel: 10.*
testbench: 8.*
dependency-version: prefer-stable
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Require dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
- name: Set Minimum Laravel 10.x Versions
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer require laravel/framework:^10.14.0 --no-interaction --no-update
if: matrix.dependency-version == 'prefer-lowest' && matrix.laravel == '10.*'
- name: Install dependencies
run: |
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit --no-coverage