Skip to content

Test on PHP 8.3

Test on PHP 8.3 #35

Workflow file for this run

name: test
on:
push:
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
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/codecov-action@v2.1.0