Skip to content

Support PEST v4

Support PEST v4 #28

Workflow file for this run

name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.5, 8.4, 8.3, 8.2]
laravel: [12.*, 11.*]
stability: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
include:
- laravel: 12.*
testbench: 10.*
- laravel: 11.*
testbench: 9.*
exclude:
- php: 8.4
stability: prefer-lowest
- php: 8.5
stability: prefer-lowest
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}
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,
bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: xdebug
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('composer.lock') }}
restore-keys: composer-
- name: Install dependencies
run: |
composer require \
"laravel/framework:${{ matrix.laravel }}" \
"orchestra/testbench:${{ matrix.testbench }}" \
--no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Run tests (no coverage)
if: matrix.php != '8.4'
run: vendor/bin/pest
- name: Run tests with coverage (PHP 8.4 only)
if: matrix.php == '8.4'
run: vendor/bin/pest --coverage