Skip to content

Release 6.3.0

Release 6.3.0 #52

Workflow file for this run

name: PHPUnit
on:
push:
pull_request:
jobs:
phpunit:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.php == 'nightly' }}
strategy:
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, nightly]
stability: [--prefer-lowest, --prefer-stable]
include:
- phpunit: ^10.5
phpunit-config: phpunit.xml
- php: 7.2
phpunit: ^8
phpunit-config: phpunit-8.xml
- php: 7.3
phpunit: ^9
- php: 7.4
phpunit: ^9
- php: 8.0
phpunit: ^9
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install PHPUnit ${{ matrix.phpunit }} and the other dependencies
run: |
composer require --dev phpunit/phpunit:${{ matrix.phpunit }} --no-interaction --no-update
composer update ${{ matrix.stability }} --prefer-dist --no-interaction
- run: ./vendor/bin/phpunit --configuration ${{ matrix.phpunit-config }}