PHP 8.4 support #340
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: test | |
on: [ push, pull_request ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ['5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4'] | |
guzzle-version: ['^5.3', '^6.0'] | |
include: | |
- php-version: '7.2' | |
guzzle-version: '^7.0' | |
- php-version: '7.3' | |
guzzle-version: '^7.0' | |
- php-version: '7.4' | |
guzzle-version: '^7.0' | |
- php-version: '8.0' | |
guzzle-version: '^7.0' | |
- php-version: '8.1' | |
guzzle-version: '^7.0' | |
- php-version: '8.2' | |
guzzle-version: '^7.0' | |
- php-version: '8.3' | |
guzzle-version: '^7.0' | |
- php-version: '8.4' | |
guzzle-version: '^7.9' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
extensions: intl, mbstring | |
# by default setup-php uses a production php.ini so force development values | |
ini-values: >- | |
zend.exception_ignore_args=Off, | |
zend.exception_string_param_max_len=15, | |
error_reporting=-1, | |
display_errors=On, | |
display_startup_errors=On, | |
zend.assertions=1 | |
- run: composer validate | |
- name: require guzzle | |
run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update ${{ matrix.composer-flags }} | |
- name: install dependencies | |
run: composer update --prefer-dist --no-progress --no-suggest --no-interaction ${{ matrix.composer-flags }} | |
- run: composer run-script test | |
phpstan: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# TODO: we likely have to care about Guzzle's version too - ideally we'd | |
# check our use of Guzzle is correct on each version | |
php-version: ['7.1', '8.2'] | |
phpstan-version: ['~1.4'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
extensions: intl, mbstring | |
# by default setup-php uses a production php.ini so force development values | |
ini-values: >- | |
zend.exception_ignore_args=Off, | |
zend.exception_string_param_max_len=15, | |
error_reporting=-1, | |
display_errors=On, | |
display_startup_errors=On, | |
zend.assertions=1 | |
# - name: require guzzle | |
# run: composer require "guzzlehttp/guzzle:${{ matrix.guzzle-version }}" --no-update ${{ matrix.composer-flags }} | |
- name: require phpstan | |
run: composer require "phpstan/phpstan:${{ matrix.phpstan-version }}" --no-update ${{ matrix.composer-flags }} | |
- name: install dependencies | |
run: composer update --prefer-dist --no-progress --no-suggest --no-interaction ${{ matrix.composer-flags }} | |
- run: ./vendor/bin/phpstan |