Skip to content

Merge pull request #96 from tarfin-labs/laravel-12 #385

Merge pull request #96 from tarfin-labs/laravel-12

Merge pull request #96 from tarfin-labs/laravel-12 #385

Workflow file for this run

name: Pest
on:
push:
branches:
- main
- '*.x'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3, 8.4]
laravel: [10, 11, 12]
stability: [prefer-lowest, prefer-stable]
exclude:
- php: 8.4
laravel: 10
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
coverage: xdebug
ini-values: xdebug.mode=coverage
- 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 update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^${{ matrix.laravel }}"
- name: List Installed Dependencies
run: composer show -D
- name: Execute tests
run: vendor/bin/pest --coverage --colors=always --order-by=random