Skip to content

Provide support for PHPUnit11. #163

Provide support for PHPUnit11.

Provide support for PHPUnit11. #163

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
tests:
name: Tests PHP ${{ matrix.php }} / PHPUnit ${{ matrix.phpunit }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: 8.0
phpunit: ^8.5
- php: 8.0
phpunit: ^9.5
- php: 8.1
phpunit: ^8.5
- php: 8.1
phpunit: ^9.5
- php: 8.1
phpunit: ^10.0
analysis: true
- php: 8.2
phpunit: ^9.5
- php: 8.2
phpunit: ^10.0
- php: 8.2
phpunit: ^11.0
- php: 8.3
phpunit: ^10.0
- php: 8.3
phpunit: ^11.0
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: soap, memcache, memcached, redis
coverage: xdebug
tools: composer
- name: Install PHPUnit ${{ matrix.phpunit }}
run: "composer require --dev phpunit/phpunit:${{ matrix.phpunit }}"
- name: Install dependencies with Composer
uses: ramsey/composer-install@v2
- name: Tests
run: bin/phpunit --coverage-clover clover.xml
- name: Upload Scrutinizer coverage
if: matrix.analysis
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: "--format=php-clover clover.xml --revision=${{ github.event.pull_request.head.sha || github.sha }}"