Skip to content

Issue #22: Upgrade to PHP 8 #27

Issue #22: Upgrade to PHP 8

Issue #22: Upgrade to PHP 8 #27

Workflow file for this run

name: Tests
on:
push: ~
pull_request: ~
jobs:
phpunit:
name: PHPUnit on ${{ matrix.php }} ${{ matrix.composer-flags }}
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0', '8.1', '8.2']
coverage: [true]
composer-flags: ['']
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring
coverage: pcov
tools: composer:v2
- name: "Use PHPUnit 9.3+ on PHP 8"
run: composer require --no-update --dev phpunit/phpunit:^9.3
if: "matrix.php == '8.0'"
- run: composer update --no-progress ${{ matrix.composer-flags }}
- run: vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml