Skip to content

Merge pull request #41 from iazaran/feat-cache-audit-bench #77

Merge pull request #41 from iazaran/feat-cache-audit-bench

Merge pull request #41 from iazaran/feat-cache-audit-bench #77

Workflow file for this run

name: Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2, 8.3, 8.4]
laravel: [8.*, 9.*, 10.*, 11.*, 12.*, 13.*]
stability: [prefer-stable]
include:
- laravel: 8.*
testbench: ^6.0
- laravel: 9.*
testbench: ^7.0
- laravel: 10.*
testbench: ^8.0
- laravel: 11.*
testbench: ^9.0
- laravel: 12.*
testbench: ^10.0
- laravel: 13.*
testbench: ^11.0
exclude:
# Laravel 11+ requires PHP 8.2+
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.1
# Laravel 13+ requires PHP 8.3+
- laravel: 13.*
php: 8.1
- laravel: 13.*
php: 8.2
# Laravel 8 doesn't support PHP 8.4
- laravel: 8.*
php: 8.4
name: P${{ matrix.php }} - L${{ 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, zlib
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- 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: List Installed Dependencies
run: composer show -D
- name: Execute tests
run: vendor/bin/phpunit --testdox