Increase PHP requirement to 8.1 #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
supported-versions-matrix: | |
name: Supported Versions Matrix | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.supported-versions-matrix.outputs.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: supported-versions-matrix | |
uses: WyriHaximus/github-action-composer-php-versions-in-range@v1 | |
test: | |
name: Run Tests and Code Quality on PHP ${{ matrix.php }} | |
runs-on: ubuntu-latest | |
needs: | |
- supported-versions-matrix | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ${{ fromJson(needs.supported-versions-matrix.outputs.version) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP and extensions with shivammathur/setup-php | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: mbstring, ctype, iconv, bcmath, filter, json | |
coverage: xdebug, pcov | |
- name: Setup Composer, install dependencies | |
uses: ramsey/composer-install@v3 | |
with: | |
composer-options: "--optimize-autoloader" | |
- name: Test | |
run: | | |
./vendor/bin/phpunit --coverage-text | |
php -n examples/benchmark-emit-no-arguments.php | |
php -n examples/benchmark-emit-one-argument.php | |
php -n examples/benchmark-emit.php | |
php -n examples/benchmark-emit-once.php | |
php -n examples/benchmark-remove-listener-once.php |