Skip to content

Update dependency phpunit/phpunit to v11 #676

Update dependency phpunit/phpunit to v11

Update dependency phpunit/phpunit to v11 #676

Workflow file for this run

name: run-tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2, 8.3]
statamic: [4.*, 5.*]
include:
- statamic: 4.*
testbench: ^7.0
- statamic: 5.*
testbench: ^8.0
name: PHP ${{ matrix.php }} - Statamic ${{ matrix.statamic }}
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, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none
- name: Install dependencies
run: |
composer require "statamic/cms:${{ matrix.statamic }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit