Release 1.2.0 #25
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: | |
run-tests: | |
name: Tests with PHP ${{ matrix.php-version }} (Composer ${{ matrix.dependencies }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- php-version: 7.4 | |
dependencies: "--prefer-stable" | |
test_coverage: "no" | |
- php-version: 7.4 | |
dependencies: "--prefer-lowest --prefer-stable" | |
test_coverage: "no" | |
- php-version: 8.0 | |
dependencies: "--prefer-stable" | |
test_coverage: "no" | |
- php-version: 8.0 | |
dependencies: "--prefer-lowest --prefer-stable" | |
test_coverage: "no" | |
- php-version: 8.1 | |
dependencies: "--prefer-stable" | |
test_coverage: "no" | |
- php-version: 8.1 | |
dependencies: "--prefer-lowest --prefer-stable" | |
test_coverage: "no" | |
- php-version: 8.2 | |
dependencies: "--prefer-stable" | |
test_coverage: "no" | |
- php-version: 8.2 | |
dependencies: "--prefer-lowest --prefer-stable" | |
test_coverage: "no" | |
- php-version: 8.3 | |
dependencies: "--prefer-stable" | |
test_coverage: "no" | |
- php-version: 8.3 | |
dependencies: "--prefer-lowest --prefer-stable" | |
test_coverage: "no" | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: xdebug | |
tools: composer:2.4.4 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install composer dependencies | |
run: composer update --prefer-source ${{ matrix.dependencies }} | |
- name: Run php-cs-fixer | |
run: composer cs-check | |
env: | |
PHP_CS_FIXER_IGNORE_ENV: true | |
- name: Run tests (without coverage) | |
if: ${{ matrix.test_coverage == 'no' }} | |
run: composer test | |
- name: Run tests (with coverage) | |
if: ${{ matrix.test_coverage == 'yes' }} | |
run: php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml | |
- name: Run coveralls | |
if: ${{ matrix.test_coverage == 'yes' }} | |
run: vendor/bin/php-coveralls |