Skip to content

Fix PHP 8.4 deprecation #10

Fix PHP 8.4 deprecation

Fix PHP 8.4 deprecation #10

Workflow file for this run

name: PHPUnit Tests
on:
pull_request:
paths:
- 'src/**.php'
workflow_dispatch:
jobs:
phpunit_tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
steps:
- name: Restore Docker image using reusable workflow
uses: ./.github/workflows/restore-docker-cache.yml
with:
php-version: ${{ matrix.php }}
- uses: actions/cache@v3
id: cache-composer
with:
path: src/vendor
key: ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('src/composer.lock') }}
- name: Composer install
if: steps.cache-composer.outputs.cache-hit != 'true'
working-directory: src
run: composer install
- name: Run PHPUnit tests
env:
PHP_VERSION: ${{ matrix.php }}
run: make phpunit