Skip to content

Support Laravel 11 and Statamic v5 (#17) #47

Support Laravel 11 and Statamic v5 (#17)

Support Laravel 11 and Statamic v5 (#17) #47

Workflow file for this run

name: run-tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [7.4, 8.0, 8.1, 8.2, 8.3]
laravel: [8.*, 9.*, 10.*, 11.*]
statamic: [3.*, 4.*, 5.*]
exclude:
- laravel: 8.*
php: 8.2
- laravel: 8.*
php: 8.3
- laravel: 8.*
statamic: 5.*
- laravel: 8.*
statamic: 4.*
- laravel: 9.*
php: 7.4
- laravel: 9.*
statamic: 5.*
- laravel: 10.*
statamic: 3.*
- laravel: 10.*
php: 7.4
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 7.4
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1
- laravel: 11.*
statamic: 3.*
- laravel: 11.*
statamic: 4.*
dependency-version: [prefer-stable]
name: P${{ matrix.php }} - L${{ matrix.laravel }} - S${{ matrix.statamic }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- 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
coverage: none
- name: Setup Problem Matches
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 }} statamic/cms:${{ matrix.statamic }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit