Skip to content

update

update #34

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]
laravel: [8.*, 9.*, 10.*]
statamic: [3.*, 4.*]
exclude:
- laravel: 8.*
php: 8.2
- laravel: 9.*
php: 7.4
- laravel: 8.*
statamic: 4.*
- laravel: 10.*
statamic: 3.*
- laravel: 10.*
php: 7.4
- laravel: 10.*
php: 8.0
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