Skip to content

Test on PHP 8.2

Test on PHP 8.2 #56

Workflow file for this run

name: test
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ['8.0', '8.1', '8.2']
stability: [prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: pcov
- name: Install dependencies
run: COMPOSER_ROOT_VERSION=dev-master composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: ./vendor/bin/phpunit --coverage-clover clover.xml
- name: Check code coverage
if: ${{ matrix.php == '8.1' }}
uses: codecov/[email protected]