Skip to content

Update

Update #32

Workflow file for this run

name: run-tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2, 8.3, 8.4]
laravel: [10.*, 11.*, 12.*]
stability: [prefer-stable]
exclude:
- php: 8.2
laravel: 11.*
include:
- laravel: 10.*
testbench: 8.*
pest: true
- laravel: 11.*
testbench: 9.*
pest: false
- laravel: 12.*
testbench: 10.*
pest: false
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- 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: none
- name: Install Laravel & Testbench
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
- name: Install Pest (if supported)
if: matrix.pest == true
run: composer require pestphp/pest pestphp/pest-plugin-laravel --dev --no-interaction
- name: Install All Dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D
- name: Run Pest
if: matrix.pest == true
run: vendor/bin/pest
- name: Run PHPUnit (fallback)
if: matrix.pest != true
run: vendor/bin/phpunit