Skip to content

tests

tests #1410

Workflow file for this run

name: tests
on:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1]
laravel: [^6.0, ^7.0, ^8.0, ^9.0, ^10.0]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
# Edge cases
- php: 8.0
dependency-version: prefer-lowest
- php: 8.1
dependency-version: prefer-lowest
# PHP Versions
- php: 7.2
laravel: ^8.0
- php: 7.2
laravel: ^9.0
- php: 7.2
laravel: ^10.0
- php: 7.3
laravel: ^9.0
- php: 7.3
laravel: ^10.0
- php: 7.4
laravel: ^9.0
- php: 7.4
laravel: ^10.0
- php: 8.0
laravel: ^10.0
- php: 8.1
laravel: ^6.0
- php: 8.1
laravel: ^7.0
include:
- laravel: ^6.0
testbench: ^4.0
- laravel: ^7.0
testbench: ^5.0
- laravel: ^8.0
testbench: ^6.3
- laravel: ^9.0
testbench: ^7.0
- laravel: ^10.0
testbench: ^8.0
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
tools: composer:v2
coverage: none
- name: Set Minimum PHP 8.1 Versions
uses: nick-invision/[email protected]
with:
timeout_minutes: 5
max_attempts: 5
command: composer require phpunit/phpunit:^9.5.8 --dev --no-interaction --no-update
if: matrix.php >= 8.1
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit --verbose