Skip to content

Add PHP 8.5 support: update CI matrix, fix PHPUnit deprecation warning #16

Add PHP 8.5 support: update CI matrix, fix PHPUnit deprecation warning

Add PHP 8.5 support: update CI matrix, fix PHPUnit deprecation warning #16

Workflow file for this run

name: CI
on: [push]
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
name: PHP ${{ matrix.php-versions }} Test
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install composer and dependencies
uses: php-actions/composer@v6
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
env:
XDEBUG_MODE: coverage
with:
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_extensions: xdebug
version: 9
args: test --coverage-clover ./coverage.xml
- name: Upload to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml
verbose: true